Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error: Template with C linkage



Howdy,
I've been working on my project that, for historical reasons, has .c
files that need to be compiled as C++. I changed the File Type on all of
this files to sourcecode.cpp.cpp.

When I have the compiler set to GCC 4.0 and target the 10.4u sdk,
everything has been compiling just fine.

I need to switch to support using the 10.2.8 SDK. So I switched the SDK
and change  the Build Rules for the Target to use GCC 3.3. Now I get

error: template with C linkage 

when the .c file (that is set to C++) hits a template.

The command line invocation includes c++ and the paths are set to
include the gcc/darwin/3.3/c++ paths. The main part of the invocation
line (without all the myriad include directories is:

    /usr/bin/gcc-3.3 -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-
strings -fasm-blocks -g -O0 -Wreturn-type -Woverloaded-virtual -Wunused-
function -Wunused-variable -DXML_NS -DPKG_HAS_CWMP -DXML_NS -
DPKG_HAS_CWMP -fmessage-length=0 -ffix-and-continue -mtune=G4 -Wno-
invalid-offsetof 

...<more not included>....

What do I need to do to get this files to compile? 

Thanks for the help,
 ...Duane

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.