• 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: C++ compiler isn't being used
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ compiler isn't being used


  • Subject: Re: C++ compiler isn't being used
  • From: Jocelyn Houle <email@hidden>
  • Date: Wed, 24 Aug 2011 16:52:57 -0400

> That's one way around it. But that wasn't my question. If a regular C++ compiler is smart enough to know that the struct keyword isn't needed, why isn't the Objective-C++ compiler?

Probably because it wasn't compiling Obj-C++, but plain Obj-C.
By default, .mm files are Obj-C++ and .m are Obj-C.

For some reason, your "Compile Source As" setting didn't quite stick, and that's probably the root of the problem.  Don't know why it wouldn't work, though...

Note: struct is required in C, but not in C++ (a struct is effectively a class with everything public by default).  When "struct" is required, you're not using a C++ compiler. _______________________________________________
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: C++ compiler isn't being used
      • From: Steve Mills <email@hidden>
References: 
 >C++ compiler isn't being used (From: Steve Mills <email@hidden>)
 >Re: C++ compiler isn't being used (From: Thomas Davie <email@hidden>)
 >Re: C++ compiler isn't being used (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: C++ compiler isn't being used
  • Next by Date: Re: C++ compiler isn't being used
  • Previous by thread: Re: C++ compiler isn't being used
  • Next by thread: Re: C++ compiler isn't being used
  • Index(es):
    • Date
    • Thread