How do I force prefix file to be precompiled w/C++ compiler?
How do I force prefix file to be precompiled w/C++ compiler?
- Subject: How do I force prefix file to be precompiled w/C++ compiler?
- From: Jim Wintermyre <email@hidden>
- Date: Wed, 13 Jul 2011 16:18:02 -0700
I have a project that uses a prefix header that is set to be
precompiled. If I set the "Compile Sources As" setting to "C++",
then this file gets precompiled with the C++ compiler (I verified the
"-x c++-header" in the build output). But... I can't use the C++
setting for compile sources as for this project! So, if I have to
use "According to File Type" for that setting, how do I force the
prefix file to still get compiled with the C++ compiler? I tried
adding the prefix header to the project and manually changing its
file type to to sourcecode.cpp.h, but that didn't make a difference
(it's compiled with "-x c-header"). Any other way to do this? In
case it matters, the prefix file is named <filename>.pch.
Slightly related question - where is the documentation on what the
file types in the File Type popup actually mean? For example, what
is the difference between "sourcecode.cpp" and "sourcecode.cpp.cpp"?
And where is that file type associated with a particular compiler?
Thanks,
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden