• 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: Xcode and C++ prefix files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode and C++ prefix files?


  • Subject: Re: Xcode and C++ prefix files?
  • From: Florent Pillet <email@hidden>
  • Date: Thu, 11 Dec 2003 10:23:38 +0100

Did you trying setting the "C Dialects to Precompile" setting to "c++" ? That's what I do and it works fine.

Florent

On 10 dic. 03, at 23:19, James Berry wrote:

Xcode (including latest 1.1 seed) seems to have a problem with prefix files and C++.

Including a standard C header into the prefix apparently leaves C linkage enabled, causing C++ files that include the prefix to start out with C linkage enabled, which causes the C++ compile to fail.

A simple test:

(1) Create a new project from the project stationary "C++ Tool".
(2) Build and run this program (no problem occurs)
(3) Now add a file "Prefix.h", total contents of which is "include <stddef.h>"
(4) turn on build option "Precompile Prefix Header"
(5) set build option "Prefix Header" value to "Prefix.h"
(6) Build again (build fails with 700 errors) some of which say things like "Error: template with C linkage".


There are numerous other headers for which the same thing happens, and also various ways to mask the behavior. More detail is in my bug report.

I filed a bug as rdar://3485838. Is this behavior that's understood?

-jdb
_______________________________________________
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.



--
Florent Pillet, Code Segment       email@hidden
Developer tools and end-user products for Palm OS & Mac OS X
ICQ: 117292463               http://perso.wanadoo.fr/fpillet
_______________________________________________
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: 
 >Xcode and C++ prefix files? (From: James Berry <email@hidden>)

  • Prev by Date: XCode's magic or FileInfo for simple unix tool
  • Next by Date: Re: Word completion feature from PB missing in Xcode?
  • Previous by thread: Xcode and C++ prefix files?
  • Next by thread: Java packages
  • Index(es):
    • Date
    • Thread