Re: C++ mixed with Cocoa
Re: C++ mixed with Cocoa
- Subject: Re: C++ mixed with Cocoa
- From: Development <email@hidden>
- Date: Tue, 1 Oct 2002 05:22:47 +0200
Hi Terence,
Am Dienstag, 01.10.02 um 03:55 Uhr schrieb Terence Goggin:
I've made sure that the .cp files were renamed to .cpp, compared
against the sample code on Apple, etc.... but can't figure out what
I'm missing. (And I assume this is just a flag or setting I need to
adjust somewhere.)
It should be simple as described in
</Developer/Documentation/Cocoa/ObjectiveC/ObjC.pdf>, page 122:
rename your sourcecode file to ".mm"
(AFAIK:
".c" == C-Code
".cp" or ".cpp" == c-plusplus-Code
".m" == Obj-C-Code
".mm" == Obj-C-plusplus-Code)
Allthough, I'd prefer to have a "flag" or some kind of identification
(a declaration in the headers) for the compiler other than the source
file's file system name suffix...
hth,
Dirk Stegemann
_______________________________________________
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.