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

Xcode and C++ prefix files?


  • Subject: Xcode and C++ prefix files?
  • From: James Berry <email@hidden>
  • Date: Wed, 10 Dec 2003 14:19:53 -0800

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.

  • Follow-Ups:
    • Re: Xcode and C++ prefix files?
      • From: Florent Pillet <email@hidden>
  • Prev by Date: Re: Xcode Yawn
  • Next by Date: Java packages
  • Previous by thread: Re: Xcode Yawn
  • Next by thread: Re: Xcode and C++ prefix files?
  • Index(es):
    • Date
    • Thread