• 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
Re: Compiling Objc++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling Objc++


  • Subject: Re: Compiling Objc++
  • From: Scott Tooker <email@hidden>
  • Date: Mon, 10 Jan 2005 19:34:12 -0800

I think that in Xcode 1.5 you can set the filetype of the file reference (via the inspector) and Xcode will treat it accordingly.

If this doesn't work in Xcode 1.5 it should be possible in the next version of Xcode.

Scott

On Jan 10, 2005, at 7:17 PM, Mark Dawson wrote:


How do I tell the compiler that a .h file is to be a C++ file?

If I have a rect.h:

struct MyRect {
   unsigned x;
   unsigned y;

  MyRect() : x(0), y(0) {}
};

I can't seem to use this in my obj-c header. This file doesn't have an associated .mm (C++) file (its just inlines). This should be legal (I thought the main criteria was no virtual functions), I think.

How do I tell XCode (1.5) to compile this header file as obj-c++ (or just plain C++)?

Thanks!
mark

_______________________________________________
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


_______________________________________________
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


References: 
 >Compiling Objc++ (From: Mark Dawson <email@hidden>)

  • Prev by Date: Re: Compiling Objc++
  • Next by Date: Re: Compiling Objc++
  • Previous by thread: Re: Compiling Objc++
  • Next by thread: Working on Mac OS X 10.3.7
  • Index(es):
    • Date
    • Thread