• 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
iphone compiling with xcode's gcc 4.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iphone compiling with xcode's gcc 4.2


  • Subject: iphone compiling with xcode's gcc 4.2
  • From: Brian Barnes <email@hidden>
  • Date: Mon, 13 Oct 2008 15:34:51 -0500

Hello Xcoders,

I am collaborating with another developer on an iphone project, and while our project compiles fine using the default compiler settings (gcc 4.0, among other things), we have errors when attempting to use gcc 4.2. My platform is an Intel MBP with Xcode 3.1.1 and OS X 10.5.5. I believe his software is similar ;)

Does anyone out there use Xcode's gcc 4.2 to regularly compile iphone programs? Was there anything special you needed to do in order to get this to work?

For the record, the errors my friend and I are receiving are different. I receive library/header errors, such as:

In file included from /Developer/Platforms/iPhoneSimulator.platform/ Developer/SDKs/iPhoneSimulator2.1.sdk/System/Library/Frameworks/ CoreFoundation.framework/Headers/CoreFoundation.h:16,
from /Developer/Platforms/iPhoneSimulator.platform/ Developer/SDKs/iPhoneSimulator2.1.sdk/System/Library/Frameworks/ Foundation.framework/Headers/Foundation.h:6,
from /Users/barnes/Desktop/void/Void/Void_Prefix.pch:6:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ iPhoneSimulator2.1.sdk/usr/include/float.h:8:24: error: float.h: No such file or directory

A failure in the Foundation.h header.

He receives this error:

error: can't exec '/Developer/Platforms/iPhoneOS.platform/Developer/ usr/bin/gcc-4.2' (No such file or directory)


A complete absence of the compiler. Curiously, I do not have a gcc-4.2 in that path either, but I do have it in /Developer/usr/bin/ gcc-4.2 and I presume Xcode is finding it there.

Any ideas? I'd like to use gcc 4.2 for its better diagnostics and presumably because it will be the default in Snow Leopard. Again, this compiles perfectly fine with gcc 4.0, so I'm wondering if I need to jump through any hoops to compile iphone things with gcc 4.2. We're using UIKit, Foundation, and OpenGL ES.

thanks,

Brian
(please cc: me on any replies)
_______________________________________________
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


  • Prev by Date: Undefined symbols: "_fputs$UNIX2003", referenced from:
  • Next by Date: Re: Running xcodebuild via ssh
  • Previous by thread: Re: Undefined symbols: "_fputs$UNIX2003", referenced from:
  • Next by thread: STL 4.0 in GCC 4.2
  • Index(es):
    • Date
    • Thread