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