• 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
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]

How do I tell XCode to use C++ when procompiling a prefix header?


  • Subject: How do I tell XCode to use C++ when procompiling a prefix header?
  • From: Jesper Papmehl <email@hidden>
  • Date: Thu, 17 Jun 2004 18:01:24 +0200

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.
(If I open the header file, select the text "string" and choose File->Open Quickly, XCode finds and opens the string file in GCC 3.3 C++ folder.)


I have changed the file type of my prefix header to sourcecode.cpp.h and I have tried settings C Dialocts to Precompile to c++, but it doesn't make any difference.

Any ideas what I might try?


TIA

/Jesper Papmehl
_______________________________________________
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.


  • Follow-Ups:
    • Re: How do I tell XCode to use C++ when procompiling a prefix header?
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: Re: sourcecode for gdb 325
  • Next by Date: Different 'Properties' Panels Presented
  • Previous by thread: Re: shell script build phase creating error
  • Next by thread: Re: How do I tell XCode to use C++ when procompiling a prefix header?
  • Index(es):
    • Date
    • Thread