Re: How do I tell XCode to use C++ when procompiling a prefix header?
Re: How do I tell XCode to use C++ when procompiling a prefix header?
- Subject: Re: How do I tell XCode to use C++ when procompiling a prefix header?
- From: Jesper Papmehl <email@hidden>
- Date: Fri, 18 Jun 2004 13:03:59 +0200
18 jun 2004 kl. 06.22 skrev Allan Odgaard:
On 17. Jun 2004, at 18:01, Jesper Papmehl wrote:
I have created a project in XCode. In the target settings for one of
the targets (a loadable bundle), I have enterred a path to a prefix
file. The contents of that file is:
#include <string>
The target compiles as it should.
However, if I check "Precompile Prefix Header" in the target
settings, the target no longer compiles. I get a "string: No such
file or directory" message when XCode tries to precompile the prefix
header.
The header will be (pre)compiled with different language settings. So
you should guard the include with
#ifdef __cplusplus
...
#endif
[Blushing slightly] Of course! Thank you _so_ much! :)
/Jesper
_______________________________________________
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.