• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C++Lib in objective-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:39 +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

References: 
 >C++Lib in objective-C (From: "Amit Kumar(R&D)" <email@hidden>)

  • Prev by Date: Re: C++Lib in objective-C
  • Next by Date: Re: saving big image crashes
  • Previous by thread: Re: C++Lib in objective-C
  • Next by thread: Re: C++Lib in objective-C
  • Index(es):
    • Date
    • Thread