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

clang - linking a static library with a pch file causes error with __STATIC__ disabled

Am currently trying to link a bunch of Objective C modules into a static library. I am getting the following error and am unable to locate any information on how the __STATIC__ can not be disabled when building a PCH file. error: __STATIC__…
Roddy
  • 2,018
  • 3
  • 16
  • 21
0
votes
1 answer

SCons not finding "stdafx.hpp" when using nested directories

I have a C++ project, and I am transitioning from Visual Studio Solutions to SCons for builds, so Linux users can also build my code. This is my first foray into SCons, and it's working very well with simple projects. But, for this project, I have a…
Adam Becker
  • 573
  • 4
  • 5
0
votes
1 answer

bleeding-edge libraries and precompiled headers sizes

Q1: My GCC precompiled header takes up 150 mb -- yes I'm using obscure TMP libraries from Boost. Anyone have any tips of benefiting from a PCH this large ? any makefile snippets which I could use to create a ram-disk(tmpfs) or something…
Hassan Syed
  • 20,075
  • 11
  • 87
  • 171
0
votes
1 answer

unable to write macros with nested if in PCH file

I'm trying to write this piece of code in the pch file : #define someString if(x == 5) { if(y == 7) { someString = @"Test1" } else { someString = @"Test2" } } else { someString = @"TEST3" } but to no avail .. anybody can help…
JAHelia
  • 6,934
  • 17
  • 74
  • 134
0
votes
1 answer

Controlling border color of data points in a line chart in R

I am having trouble controlling the color of data points in a line chart in R. I have the following code: Pareto <- read.table("ParetoFront.csv",header=TRUE,sep=";") dfP <-…
david
  • 127
  • 3
  • 9
0
votes
1 answer

Cannot figure out how the .pch file is referenced by the project

Sorry about the novice question, but in this simple iOS tutorial I could not figure out where in the project (in Info.plist or somewhere else) is stated that the file HelloThere_Prefix.pch relates to the other files. I understand that it links to…
Piovezan
  • 3,215
  • 1
  • 28
  • 45
0
votes
1 answer

VSC++2010: -Zm135

I would like to read detailed description of -Zm135 Visual Studio 2010 command line option. Briefly, this is an option to set when virtual memory for PCH is exceeded. Additionally, what is a meaning of -Zm letters?
John
  • 143
  • 1
  • 2
  • 12
-1
votes
2 answers

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 of these files in my environment. Is there any…
user12595757
-1
votes
1 answer

XCode PCH Errors

From what I can tell, this has not been asked before. I am building a cocoa touch static library and I have been going along fine until yesterday, right after I checked the project into SVN, it no longer builds and I have 36 errors in my PCH. This…
Richard J. Ross III
  • 55,009
  • 24
  • 135
  • 201
-1
votes
2 answers

Custom NSLog without precompiled header

Since Xcode 6 and the introduction of modules, there is no need for precompiled headers anymore. I have always been using a custom logging method which also logs the file, method and line number it was on. This method was defined in the precompiled…
yoeriboven
  • 3,541
  • 3
  • 25
  • 40
-1
votes
1 answer

Does visual C++ check if it needs to re-generate its pch if I use /Yc

It seems that when I set the option to /Yu, it just uses whatever pch there is, without checking if it needs to be updated, meaning it would keep a list of headers it precompiles and check if those files has been updated since the last time they…
jokoon
  • 6,207
  • 11
  • 48
  • 85
1 2 3
9
10