Mixed Objective-C and C++ for Cocoa App
Mixed Objective-C and C++ for Cocoa App
- Subject: Mixed Objective-C and C++ for Cocoa App
- From: Stephen Starkie <email@hidden>
- Date: Wed, 2 May 2001 10:24:07 +0100
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.