Re: Objective-C++: compiling C++ class in a Cocoa app
Re: Objective-C++: compiling C++ class in a Cocoa app
- Subject: Re: Objective-C++: compiling C++ class in a Cocoa app
- From: Nicola Vitacolonna <email@hidden>
- Date: Fri, 14 Jun 2002 14:53:48 +0200
>
I don't think that C++ header files can be imported. I think you need
>
to use
>
include. Also, you may need to change the extension to .M
The #import directive seems to work fine to me also with C++ header
files. As to Apple's Release Notes, the .M extension is the old one,
while .mm is the current one.
Anyway, I found the solution to my problem by looking at the site you
suggested to me
(the correct url is:
http://developer.apple.com/techpubs/macosx/DeveloperTools/Compiler/CompilerTOC.
html).
I have added the -ObjC++ flag in the Build Settings of the project.
Everything now works fine.
Thank you,
Nicola
>
I found some information on Apple's website that may help:
>
>
http://developer.apple.com/techpubs/macosx/DeveloperTools/Compiler/Compiler.
>
4.html
>
>
Hope that helps,
>
--Chris Szewczyk
>
>
** ** Get my PGP public key at:
** * ** * www.dimi.uniud.it/~vitacolo
** * ** * or finger email@hidden
** * Universita' degli Studi di Udine
* ***icola Vitacolonna
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.