Questions tagged [pch]

Precompile Prefix Header

In iOS development with Xcode, PCH stands for Precompile Prefix Header, to make compiling faster and avoid repeating using same header file over and over again.

146 questions
0
votes
1 answer

Objective-C: Xcode Prefix Header (.pch file) redundant #import

Can't I leave out #import "foo.h" in .m file if it's already in the prefix header? The product still builds successfully when I leave it out. But, I've noticed that the Xcode templates keep them in. Why? Is the answer the same for #include?
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
0
votes
0 answers

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(list(ntaxa = c(2, 2, 2, 2, 2, 2, 2, 5, 5, 5, 5, 5, 6, 6,…
HeAn
  • 1
  • 2
0
votes
1 answer

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?
Uytab
  • 85
  • 1
  • 7
0
votes
0 answers

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 B.cpp // also C.cpp // also ... Z.cpp // also I…
alfC
  • 14,261
  • 4
  • 67
  • 118
0
votes
1 answer

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 end of file while looking for precompiled header.…
user7898257
0
votes
2 answers

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 application compiled and launched successfully. The MFC…
afarley
  • 781
  • 6
  • 26
0
votes
2 answers

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 Setting -> Add User Defined setting and assign key…
Deepak Thakur
  • 3,453
  • 2
  • 37
  • 65
0
votes
1 answer

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 once //C standard Library #include…
AbdelRahman Mahmoud
  • 153
  • 1
  • 1
  • 12
0
votes
0 answers

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 alive to keep a file in use. I need help if anyone…
0
votes
1 answer

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 pch I am calling. Generating some data (my real…
Purrsia
  • 712
  • 5
  • 18
0
votes
3 answers

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 help sites. I can't find any help. I assume it's a…
Alice Turner
  • 81
  • 1
  • 9
0
votes
1 answer

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 and also try to install/update pods but pod…
0
votes
1 answer

Visual Studio C++ console application

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 world" program. I just want it to default load…
0
votes
2 answers

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++ / Preprocessor / Preprocessor Definitions The…
SPlatten
  • 5,334
  • 11
  • 57
  • 128
0
votes
1 answer

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 of the compiler, or the precompiled header is C++…
Jeff
  • 2,061
  • 4
  • 27
  • 45