• 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: Cross development, can't include <string> on 10.2.8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross development, can't include <string> on 10.2.8


  • Subject: Re: Cross development, can't include <string> on 10.2.8
  • From: Chris Espinosa <email@hidden>
  • Date: Sat, 23 Jul 2005 09:19:12 -0700

On Jul 23, 2005, at 6:24 AM, Theodore H. Smith wrote:

I have a copy of Xcode 2.0, which seems to be working fine. I didn't install cross development on this version of Xcode, the first time around, which was a mistake.

So, I've installed the Cross development SDKs.

I altered the "Cross-Develop Using Target SDK:" popupmenu in the Project Info window in Xcode, to set it to 10.2.8 SDK. I then compiled my project.

I got this

 error: string: No such file or directory

on the line:

#include <string>

Resetting the SDK to use the current OS's SDK, fixes this error.

I am doing something wrong? Is my install of Xcode wrong? I am lost here, when it comes to knowing which files should be included when by what.

I think including <string> is a pretty simple thing.

Except that the <string> header is compiler-specific, that is, there are separate ones for the gcc3.3 compiler and the gcc4.0 compiler, each in a separate directory. And gcc 4.0 (the default with Xcode 2.0) can't build C++ code for Mac OS X 10.2, because of changes in the C++ ABI. So the answer is to:
- select your target and choose Get Info
- click the Rules tab
- double-click the System C/C++ Compiler Rule to make your own new one
- set your C++ Compiler Rile to use gcc version 3.3 for that target


Chris

_______________________________________________
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: 
 >Cross development, can't include <string> on 10.2.8 (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: Re: Exporting Symbols...
  • Next by Date: Re: How to attach headers to targets
  • Previous by thread: Cross development, can't include <string> on 10.2.8
  • Next by thread: Odd relative paths
  • Index(es):
    • Date
    • Thread