Questions tagged [pch]
Precompile Prefix Header
142
questions
0
votes
0
answers
23
views
R pch symbols as text in word
Is there a way to use R pch symbols as text in ms word? I assume there are keyboard commands to generate these symbols as text, but I cannot find such information.
0
votes
0
answers
12
views
Pasted "X" not showing on my graph using plot()
I am trying to plot a graph where one point is showing different from the others. I have written this code, however the pasted symbol "X" for the certain point that I have indicated is ...
0
votes
1
answer
70
views
Applying `set_property` on source file generated for CMake precompiled headers without hardcoding PCH path
I am using CMake's target_precompile_headers to generate a precompiled header from a PCH.hpp file in a project I'm contributing to.
I need to ensure that the resultant generated source file has the ...
0
votes
1
answer
92
views
Changing the points shape in fviz_pca_biplot
I am plotting my PCA as a biplot with
fviz_pca_biplot
but I cannot change my points to squares (pch=15).
For single group of observations I use the code as below
basic_bi_plot <- fviz_pca_biplot(...
1
vote
0
answers
465
views
C++: cannot open source file "pch.h"
I'm using Visual Studio 2022, and trying to use precompiled headers. In my project settings under all configurations I have:
Precompiled Header: Use (/Yu)
Precompiled Header File: ...
1
vote
1
answer
82
views
R ggplot2: maintain original colors and group level order when plotting subsets of data on different layers
I have a very simple (albeit large) data frame with 2 numeric columns and 1 character grouping column, containing several NAs.
I am going to use iris as an example. Below, I just introduce random NAs ...
0
votes
0
answers
41
views
Cluster Analysis Visualisation: Colouring the Clusters after categorial variable
Salut folks! I'm still quiet new to ggplot and trying to understand, but I really need some help here.
Edit: Reproducible Data of my Dataset "Daten_ohne_Cluster_NA", first 25 rows
structure(...
0
votes
1
answer
89
views
Is it allowed to include a precompiled header into a header file?
I know what precompiled headers are, but I found nothing about pch-s being included in header files. Can you do that? I tried it and it worked. Does it have some drawbacks?
-1
votes
2
answers
230
views
Removing extra files generated while creating a dll project in visual studio
While creating a dll project in VS17, I see multiple files were created on initialization.
But whichever project on C++ I work on, I don't see any such files in their environment. How can I get rid ...
0
votes
0
answers
689
views
Use precompiled headers in C++ project
I have a project with the following structure
root/
CMakeLists.txt
mylibrary.hpp
test/
CMakeLists.txt // included from root's CMakeLists
A.cpp //includes<mylibrary.hpp>
B.cpp /...
1
vote
0
answers
29
views
How can I find out the address space of the BIOS chip?
I want to write to BIOS, I know that it is required to disable write protection and more things that can be founded on the PCH datasheet (intel's case).
If I want to write to BIOS, first I have to ...
0
votes
1
answer
127
views
Unexpected end of file while looking for precompiled header
I've been trying to organize my code into sub-folders, and I've been careful to not do anything extra than that since my last commit. I am currently getting a bunch of C1010 errors saying:
unexpected ...
3
votes
2
answers
967
views
'Virtual range for PCH exceeded' issue - after Visual Studio 2019 Upgrade to 16.7.6
This might be related to 38479787/c3859-virtual-memory-range-for-pch-exceeded.
A good read on PCH issues and recommendations can be found here.
After we've upgraded from VS2019 16.6 to VS2019 16.7.6, ...
2
votes
0
answers
114
views
Clang PCH performance worse than with headers?
I have a set of headers included to source files which is rarely/never changed. Parsing/reparsing of frequently changed source file which uses the headers (IDE use case) takes too long (few seconds). ...
0
votes
2
answers
364
views
Why am I getting a warning to include pch.h even though it's already included?
I'm trying to reproduce an issue, so I have created an empty MFC C++ application using the VS2019 wizard and a separate native Unit Test project.
Before adding the Unit Test project, the MFC ...
0
votes
2
answers
347
views
How to add a precompiled header in xcode 11
I wanted to define few custom values in a pre-compiled header for different targets of my app. I tried the following to define headers, but none worked:
by adding a header from Editor -> Add Build ...
2
votes
0
answers
183
views
Why does force including precompiled headers work at all?
Apparently it is recommended to force include precompiled headers, so that the source may be used with and without precompiled headers. Even CMake uses the force include method on precompiled headers.
...
0
votes
1
answer
156
views
Is there an optimal way to use pre-compiled headers in multiple projects?
I have a solution with 2 projects, one is a static library and the other is an application that
links to it. In the static library I have a pre-compiled header file with the following code:
#pragma ...
0
votes
0
answers
37
views
While renaming a pch file at Debug folder it shows cl.exe is using it
I have a pch file at the debug directory of my application's visual studio project.
But it shows in use by cl.exe. I don't have any visual studio IDE open.
I can't think which agent can keep cl.exe ...
1
vote
0
answers
203
views
Failed to emit precompiled header (opencv, xcode)
My goal is to use opencv camera functions in react-native. Currently, I'm struggling to fix some errors.
My project contains many files:
When I try to build the project, I got two errors. For me ...
1
vote
3
answers
534
views
How to specify pch by the value of a variable?
I'm making a plot of Y vs X for some discrete points in R. There is a third variable Z that has a value of either A or B, so I want to identify the third variable by pch in the plot. I can do the ...
9
votes
3
answers
5k
views
PCH was compiled with module cache path error
I changed the name of my username and home folder for my Mac and now when I try building a new project I get an error during the compiling process. How would I correct this?
I already cleaned the ...
4
votes
1
answer
490
views
#define XYZ before #include precompiled header
I am refactoring some existing software and I regularly see this
#define XYZ
#include "stdafx.h"
where stdafx is the precompiled header file.
Q1. Can a knowledgeable person please confirm the ...
0
votes
1
answer
1k
views
Plot in R not recognizing pch numbers
I am trying to plot in base R with the regular plot() fcn. However, when passing a vector of which pch to use, it will not plot the pch, it will only plot the number '1' instead of the shape of the ...
0
votes
3
answers
386
views
Premake (lua) pch create /Yc Visual Studio
In the premake lua script for my solution. How do i set it to create "/Yc" the phc instead of being set to use "/Yu" on first initialisation.
I have searched the online documentation and tried other ...
5
votes
0
answers
2k
views
error: unable to spawn process (Argument list too long)
I am following this tutorial to embed Unity project in iOS project.
I got the error in the Precompile Prefix.pch process
error: unable to spawn process (Argument list too long)
My Prefix.pch ...
10
votes
1
answer
2k
views
Why doesn't g++ find the precompiled-header that's in the -I include-path?
I'm trying to build a precompiled header and an executable, like so:
g++ -g -Wall -std=c++17 \
-c ./src/pch.hpp -o ./build/pch.hpp.gch
g++ -g -Wall -std=c++17 \
-c ./src/*.cpp \
...
1
vote
0
answers
512
views
Error in Unreal after Xcode Update : PCH file uses an older PCH format that is no longer supported
So I just recently updated Xcode(not too sure if this is causing the problem) to version 10.2. When I compile my code in Unreal Engine 4 version 4.21.2 it gives me this error. "PCH file uses an older ...
1
vote
1
answer
47
views
how to define predefined pch values and new pch shape in same R code
I am trying to put different shape using pch. but it's not giving expected output.
legend("topleft",
legend = c("Upper limit ","Estimated","Lower limit"),
col = c("black","...
0
votes
1
answer
368
views
Project downloaded from github not runing in xcode 10
I had download a project from my git repo. In my project there are two .xcodeproj file, podfiles with some of objective c code. But is not running and giving error
I had try to edit manage schemes ...
1
vote
2
answers
1k
views
"input is not a PCH file" - Xcode
I'm working on a client code using PCH a file and I have this errors.
error: input is not a PCH file:
'/Users/XXX/Library/Developer/Xcode/DerivedData/Stockfish-gmtlyxbgbyyplbgwrhzsazbjjtxp/Build/...
21
votes
4
answers
24k
views
How do I fix unexpected end of file error with pch.h
So I have been trying to learn cpp and I was writing a program, and when I try to build the solution, it gives an error saying
unexpected end of file while looking for precompiled header. Did you ...
1
vote
2
answers
3k
views
changing from `stdafx.h` to `pch.h`
I clone a repo, c++ solution with 3 projects, a console application .exe a dll project .dll and a unit test .dll. I am not sure with what version of VS or compiler it was built or created.
building ...
0
votes
1
answer
421
views
Visual Studio C++ console application [duplicate]
I recently had to reinstall visual studio. Previously when I chose Windows Console Application it would load with #include "stdafx.h". Now for some reason it loads with #include "pch.h" and a "hello ...
0
votes
2
answers
4k
views
Unreal Engine 4.20 build error in plugin: [Adaptive unity build] Disabling PCH for excluded files
I'm running into the following error in a plugin's code when trying to build a project after updating to Unreal 4.20:
1>[Adaptive unity build] Disabling PCH for excluded files. Set ...
0
votes
2
answers
138
views
MSVC 2008, debugging process, can't debug
I've been working on this project for a while now, its a legacy DLL, my part is to adapt it to work with a new version of a library.
I added a definition to the build defined in the Properties / C/C++...
3
votes
1
answer
85
views
Swift4 - Xcode 9 PCH error
This project works well all the time until I install a framework. Once the framework seems hard to handle, I uninstall it. Then, xcode 9 read PCH error.
I perform this project with Swift, and I know ...
2
votes
0
answers
66
views
PCH being ignored when added to existing tvOS project
My problem is that I am trying to add a PCH file to an existing tvOS project but it is not taken into consideration and I can't find any resolution to this issue or at least why it is happening.
I've ...
0
votes
1
answer
511
views
Adding Sqlite3 to project Error C1853 precompiled header file is from a previous version
I am working on a project VS2015 x64 unmanaged cpp
I added sqlite3.c, sqlite3.h to the project and build. I get this message.
sqlite Error C1853 precompiled header file is from a previous version ...
5
votes
2
answers
3k
views
How do I compile PCH with a different module cache path on Xcode
The initial error from Xcode was this before I changed the home folder's name:
<unknown>:0: error: invalid virtual filesystem overlay file '/Users/Mage's_Machine/Library/Developer/Xcode/...
1
vote
1
answer
582
views
iostream file not found error when compiling a precompile header in Xcode
I get a 'iostream' file not found error when compiling my Prefix.pch precompile header file in Xcode 9. It seems the compiler can't find it, yet it finds <stdio.h> and <Foundation/Foundation....
0
votes
1
answer
170
views
What is the preprocessor define for C++ language in Xcode precompile header?
In my Prefix.pch file I am using __OBJC__ preprocessor define for compilation of Objective C headers. What is the equivalent for compilation of C++ headers?
#ifdef __OBJC__
#import <...
0
votes
1
answer
835
views
Using UTF-8 codes for use in intToUtf8() in R?
I'm trying to use UTF-8 code to put a symbol in some text in an R figure. If I wanted a black circle, I could use the code intToUtf8(9679). Where can I find a database that lists the values for other ...
0
votes
2
answers
698
views
ggplot2 pch 21 fill within aes not working
I'm trying to make a scatterplot of sorts, where the symbol shape and the symbol fill are set by two different variables. Here is an example of my data:
Sample Experiment Replicate EPS Time ...
0
votes
2
answers
264
views
First Time Using PCH, getting Linker Tool Error
I'm a pretty novice programmer, just learning a little bit of c, but I always did it on Linux with gcc and Vim but decided to try using visual studio and I'm getting LNK2005 and LNK1169 errors, I've ...
1
vote
1
answer
888
views
How to identify the point characters in the "pch = as.numeric" command?
I'm trying to make an NMDS plot, and so far it is working out really well, but my problem is: I have three types of Forest: A, B, and C, and the command pch = as.numeric(env$Forest) creates three ...
0
votes
0
answers
41
views
How can I restart a class added in prefix.pch in my objective c project?
I added a extension class into my prefix.pch. I added some private functions to this class. WHen I call this class from some viewController, this is initialized, but when I call again isn't ...
4
votes
2
answers
6k
views
IntelliSense PCH Warning not going away
I have a ATL C++ project and I don't have any includes in one of my C++ source files.
When I try to compile, I am receiving a PCH warning:
Error (active) E2940 PCH warning: an unknown error ...
0
votes
1
answer
55
views
Visual Studio 2017 PCH doesn't improve build time
I enabled PCH for one project. Added all commonly used headers(from C++ std lib and boost) into stdafx.h, added stdafx.cpp and included stdafx.h there. I selected Create in the properties of stdafx....