Re: C++Lib in objective-C
Re: C++Lib in objective-C
- Subject: Re: C++Lib in objective-C
- From: Damien Bobillot <email@hidden>
- Date: Wed, 24 Nov 2004 11:37:15 +0100
Le 24 nov. 04, à 09:13, Amit Kumar(R&D) a écrit :
Any body can help for using C++ lib( compiled through Code W) in COCOA /Objective-C/Xcode enviroment.
C++ is not a good language to create libraries : since there's no standard for C++ code object (ABI), you must use the same compiler for the library and for the application using the library. Even with different version of the same compiler, there may be incompatibilities. XCode use gcc, and I don't think CW compilers are compatible with gcc.
If you can't compile your application with CW, or if can't recompile the library with gcc, you may write a glue library with CW exporting C and/or Objective-C functions/classes equivalent to C++ code. This glue library can be linked against your application using gcc.
--
Damien alias Schmurtz
aim:goim?screenname=schmuuurtz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden