Re: Objective-C++ or C bridge?
Re: Objective-C++ or C bridge?
- Subject: Re: Objective-C++ or C bridge?
- From: Andreas Monitzer <email@hidden>
- Date: Sat, 2 Feb 2002 17:59:28 +0100
On Saturday, February 2, 2002, at 05:26 , Joe Chang (l%l,m8) wrote:
I was looking for a right way to calling C++ code from Objective-C code
and I remember this had been discussed before. However, I'm still
wondering what is the best way to do this. Should I use Objective-C++,
or the Apple's C bridge method?
To use Objective-C++, I should install its compiler first... am I
right? or am I missing something?
That compiler is already included with the latest dev tools (Dec 2001).
Just name your file .mm instead of .m or .cc/.cpp/.c++, and it should
work.
andy