Re[2]: C++ in a Cocoa App - How Hard is THAT?
Re[2]: C++ in a Cocoa App - How Hard is THAT?
- Subject: Re[2]: C++ in a Cocoa App - How Hard is THAT?
- From: Lance Drake <email@hidden>
- Date: Fri, 7 Oct 2005 18:21:49 -0600
Good Golly! Thanks so much for the immediate response and especially helpful instructions.
The file has a '.cpp' suffix. It's already compiling OK - as far as I can tell - it seems more like the big problem is in making a reference to that thing from out of the Obj-C world. As a test, I changed it to '.mm' - but nothing is behaved any differently.
The page at <http://developer.apple.com/releasenotes/Cocoa/Objective-C++.html> has lots to say about this topic - but, so far, I can't get it happen for me. For instance - at the beginning of the '.m' file in which I would like to refer to the C++ object - there's an error generated with the sequence:
// ---------------------
//
<x-tad-bigger>TEST_MAIN</x-tad-bigger>.m
#import <Cocoa/Cocoa.h>
class myCPPfile;
...
...
<x-tad-bigger>ERROR: /Volumes/dev/CPP_TEST/TEST_MAIN.h:11: warning: data definition has no type or storage class
</x-tad-bigger>
Anyway - the Mac developer community is the BEST - thanks for the moral support - I'll keep drilling down...
Best Wishes,
Lance Drake
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden