Re: Calling C++ from Obj-C
Re: Calling C++ from Obj-C
- Subject: Re: Calling C++ from Obj-C
- From: Guillaume Borios <email@hidden>
- Date: Fri, 31 Aug 2001 17:17:41 +0200
Le vendredi 31 ao{t 2001, ` 04:15 PM, brian hook a icrit :
Okay, I realize that this is probably an FAQ, but I actually did a
Google and a list archive search and didn't turn up anything (anyone
else notice that searching on "C++" is just kind of a pain?).
I have a fairly large codebase of C++ classes that are integrated into
my current projects. There's a lot of stuff in there that my Cocoa app
needs to be able to access. For example, I want to do a data
visualization tool in Cocoa, however all the data generation stuff is
in C++. In addition, I'm writing a server back end in ANSI C++, but
I'd like to make a Cocoa version that can be used as a front end to the
server (whereas on Linux and Windows the server will simply run at the
console).
With ObjC, you'll have to hack things up with a pure C layer to cross
the language bridge, but if you wait a bit till 10.1 dev tools, you'll
get a new Project Builder version that compiles ObjC++.
If I were you I'd wait : it could take less time than making the C layer
and its much easy too ;-)
Guillaume