• 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: Why can't my X-Code find this file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why can't my X-Code find this file


  • Subject: Re: Why can't my X-Code find this file
  • From: Eric Albert <email@hidden>
  • Date: Wed, 8 Mar 2006 20:03:56 -0800

On Mar 8, 2006, at 7:45 PM, John Draper wrote:

In a lot of other files I've imported from Linux code,
I can do this...

#include <string>

And in all other files it compiles just fine, except this one...

/usr/bin/gcc-3.3 -x objective-c

<string> is a C++ header, but you're compiling this file as Objective- C. The easiest fix is to rename the file to have a '.mm' extension, which makes it Objective-C++.


Hope this helps,
Eric

_______________________________________________
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: Why can't my X-Code find this file
      • From: John Draper <email@hidden>
References: 
 >Why can't my X-Code find this file (From: John Draper <email@hidden>)

  • Prev by Date: Re: Build config help needed
  • Next by Date: Re: Build config help needed
  • Previous by thread: Why can't my X-Code find this file
  • Next by thread: Re: Why can't my X-Code find this file
  • Index(es):
    • Date
    • Thread