On Sep 18, 2008, at 7:53 AM, Kiel Gillard wrote:

Howdy,

I think the following syntax is the right idea:

extern "C" {     extern void MyFunction(void *args);
}

I'm not sure about the duplicate 'extern'. Here's what I use in my code:

extern "C" void MyFunction(void *args);

or you can also do

extern "C" {
#include "MyCHeader.h"
}

for entire header files.

Also, you can use 'nm -o libSomething.dylib' do inspect the function signatures a certain lib exports.

-Stefan
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to