Re: can't call framework from cpp
Re: can't call framework from cpp
- Subject: Re: can't call framework from cpp
- From: bob piatek <email@hidden>
- Date: Thu, 21 Dec 2006 10:46:25 -0800
I forgot to mention that I'm just using plain vanilla 'C' code in my framework.
It looks like the suggestion M. Uli Kusterer had was my problem.
C++ mangles names. To (Objective) C, you need to wrap it in
extern "C" { // C (proto)types go here }
See any of Apple's headers for an example.
Bob
On Dec 21, 2006, at 10:10 AM, Alexander v. Below wrote:
Am 21.12.2006 um 18:52 schrieb bob piatek:
Do I need to do something special when building my framework in order to use it from a C++ app?
Well, you must not link it against Cocoa Frameworks, and you must not use the Objective-C runtime. Doing either is bound for failure in C/C++ projects
Alex
|
_______________________________________________
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