Precompiled headers in a mixed environment
Precompiled headers in a mixed environment
- Subject: Precompiled headers in a mixed environment
- From: j o a r <email@hidden>
- Date: Wed, 7 Apr 2004 09:20:07 +0200
Hello,
We have a project that is compiled using Xcode on Mac OS X, but also
using Makefiles on other platforms. In Xcode I'm using precompiled
headers to speed up the compile times, the pch file is included in the
build style and therefore implicitly imported/included for all source
files in the project.
Now, it's of course not enough to implicitly include the headers via
the pch file only, as the precompiled headers is not used on the other
platforms. The problem here is that it's very easy for one of our
developers, who might only compile our project in Xcode, to forget
about including one or more header files - as they are implicitly
included. It works fine on his machine and so he commit to CVS, thus
creating problems for other developers, and automatic build scripts.
What is the best way to solve this problem? Would it be possible to get
some sort of warnings from the compiler if a particular file is only
included from the pch file? Or should I somehow explicitly include the
header files from the pch file in all source files that use the pch
file?
j o a r
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.