• 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: Mixed Objective-C and C++ for Cocoa App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mixed Objective-C and C++ for Cocoa App


  • Subject: Re: Mixed Objective-C and C++ for Cocoa App
  • From: email@hidden
  • Date: Wed, 2 May 2001 08:38:43 -0700

Check out the sample code portion of Apple' Developer web site - I believe
they have an example that shows how to wrap C++ code so it can be accessed
from Objective-C Cocoa Apps..





"Stephen Starkie"
<email@hidden> To: email@hidden
Sent by: cc:
cocoa-dev-admin@lists Subject: Mixed Objective-C and C++ for Cocoa App
.apple.com


05/02/01 02:24 AM






Hi,

I have just started development with Cocoa - and have managed to

get through a number of the samples. However, I'm from a predominantly
C++ background. We therefore have a lot of C++ code that I would like
to use in Cocoa development. What are my options?

I have tried using a .M file which includes a C++ header and calls a C++
method (.mm didn't work at all) in Project Builder and also -ObjC++. In
both cases, I get the following error in the build log;

CompileC /Users/sjstar/Development/OpenGL
Test/build/intermediates/Teapot.build/Objects/ppc/CAcrobotConstraint.o
cc: installation problem, cannot exec `cc1objplus': No such file or
directory
cpp: output pipe has been closed

Do I need a special version of the compiler or something - I thought it
was supposed to support mixed Objective-C and C++ code?

Steve.
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Prev by Date: Re: Cocoa, Java and C
  • Next by Date: Re: How to open help bundle?
  • Previous by thread: Re: Mixed Objective-C and C++ for Cocoa App
  • Next by thread: Re: NSOpenPanel and New Folder button
  • Index(es):
    • Date
    • Thread