Re: linking obj-c code w/ c++ shared libs
Re: linking obj-c code w/ c++ shared libs
- Subject: Re: linking obj-c code w/ c++ shared libs
- From: Dietrich Epp <email@hidden>
- Date: Sun, 12 Jan 2003 00:44:39 -0800
On Sunday, January 12, 2003, at 12:11 , Gary Grobe wrote:
How does obj-c
I have a project where I've built a GUI using IB, and now would like to
extend the backend of the GUI to use some shared libs in C++. I guess
I'm looking to use it in the same way I'd use JNI in java to use native
code.
Where can I find out more info on this.
Any help much appreciated.
It's easy - you can use C++ with Objective C just like you would expect,
no fancy interfaces at all. Just #include your C++ headers, and rename
you Objective-C sources that interface with C++ code to end with .mm
instead of .m (otherwise you'll get all kinds of silly errors). It's
called Objective-C++.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.