• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I tell XCode to use C++ when procompiling a prefix header?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >How do I tell XCode to use C++ when procompiling a prefix header? (From: Jesper Papmehl <email@hidden>)
 >Re: How do I tell XCode to use C++ when procompiling a prefix header? (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: Minor issues with Cocoa Currency Tutorial
  • Next by Date: Re: sourcecode for gdb 325
  • Previous by thread: Re: How do I tell XCode to use C++ when procompiling a prefix header?
  • Next by thread: Different 'Properties' Panels Presented
  • Index(es):
    • Date
    • Thread