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

Compiling Objc++


  • Subject: Compiling Objc++
  • From: Mark Dawson <email@hidden>
  • Date: Mon, 10 Jan 2005 19:17:41 -0800

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


  • Follow-Ups:
    • Re: Compiling Objc++
      • From: Scott Tooker <email@hidden>
    • Re: Compiling Objc++
      • From: Stephen Coy <email@hidden>
  • Prev by Date: Re: Where is sqrtf?
  • Next by Date: Re: Compiling Objc++
  • Previous by thread: struct parameter padding
  • Next by thread: Re: Compiling Objc++
  • Index(es):
    • Date
    • Thread