Adding obj-c++ file to carbon project changes preprocessed header file types
Adding obj-c++ file to carbon project changes preprocessed header file types
- Subject: Adding obj-c++ file to carbon project changes preprocessed header file types
- From: Russ <email@hidden>
- Date: Mon, 11 Feb 2008 20:31:18 -0800 (PST)
I'm trying to use NSCursor from my shipping commercial C++ Carbon app. I've got
the basic Cocoa code for this from previous threads, and put it into a small
file (.m or .mm). For the purposes of this problem the details appear to be
completely irrelevant, the new obj-c file does not include anything, is not
included by anything, and is not compiled before the show-stopper at hand...
As soon as I add the obj-c file to my existing project, xcode (3.0) changes the
file type of my existing header files from c++ to objective-c. It recompiles
the headers with "-x objective-c-header" or "-x objective-c++-header" instead
of "-x c++-header" as normal. Of course, this completely hoses the entire
compile with about a thousand error messages.
This is puzzling and maddening since the header files have nothing to do with
the objective-c snippet. I need the objective-c compiler to look at the
objective-c code and not all the existing unrelated code. How do I straighten
XCode out on this in an efficient manner? This is an existing project file,
I've been adding and removing the objective-c/c++ file over and over different
ways, watching it gum up the whole thing each time I add this one tiny file.
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden