re: Mixing C and C++ in the same in a CFPlugIn
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