• 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
re: Mixing C and C++ in the same in a CFPlugIn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Mixing C and C++ in the same in a CFPlugIn


  • Subject: re: Mixing C and C++ in the same in a CFPlugIn
  • From: George Warner <email@hidden>
  • Date: Mon, 20 Dec 2004 08:58:28 -0800

On Sat, 18 Dec 2004 13:31:12 -0800, Rick Steele <email@hidden>
wrote:
> Hello All,
>
> Does anyone know what might cause Xcode to complain when
>
> You have a source file called "Something.c++"
> You have a source file called "SomethingElse.c" which calls a routine
> in "Something.c++"
>
> with the the following message
>
> ld: Undefined symbols:
> _RoutineOneInSomething
> _RoutineTwo1nSomething
>
>
> I've been beating my head against the wall on this for the last 2
> days trying to figure it out.

Dollars to doughnuts it's C++ name mangling. Ether turn on the C++ compiler
for the "SomethingElse.c" file or in the "Something.h++" header use the
extern "C" {} to turn off mangling. Reply back if this isn't clear.

--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)


 _______________________________________________
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

  • Prev by Date: Re: Where is the __MyCompany Name__ set?
  • Next by Date: Library location
  • Previous by thread: Re: Mixing C and C++ in the same in a CFPlugIn
  • Next by thread: include path question
  • Index(es):
    • Date
    • Thread