• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Adding obj-c++ file to carbon project changes preprocessed header file types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Adding obj-c++ file to carbon project changes preprocessed header file types
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: @property problem
  • Next by Date: NSAttributeString change the paragraph style
  • Previous by thread: NSArrayController index doesn't change when TableView selection changes
  • Next by thread: Re: Adding obj-c++ file to carbon project changes preprocessed header file types
  • Index(es):
    • Date
    • Thread