Re: Xcode and C++ prefix files?
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.