• 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
error: Template with C linkage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error: Template with C linkage


  • Subject: error: Template with C linkage
  • From: "Duane Murphy" <email@hidden>
  • Date: Fri, 5 May 2006 19:12:42 -0700

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: error: Template with C linkage
      • From: "Duane Murphy" <email@hidden>
  • Prev by Date: Re: Sorting files in all-in-one view?
  • Next by Date: Re: error: Template with C linkage
  • Previous by thread: Re: Linking problem: failed with exit code 1
  • Next by thread: Re: error: Template with C linkage
  • Index(es):
    • Date
    • Thread