Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID

stdarg.h & float.h build errors?

trappertrapper Posts: 299Registered Users
edited January 2011 in iPhone SDK Development
Ok so just loaded up my project into 3.0 sdk and had a crack at compiling it for 3.0. Got two errors as shown below, anyone seen this before or understand what it means?
In file included from /Developer 3.0/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:12,
                 from /Developer 3.0/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
                 from /Users/trapper/Desktop/iPhone Code/App/App_Prefix.pch:6:
/Developer 3.0/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
In file included from /Developer 3.0/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16,
                 from /Developer 3.0/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
                 from /Users/trapper/Desktop/iPhone Code/App/App_Prefix.pch:6:
/Developer 3.0/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/usr/include/float.h:8:24: error: float.h: No such file or directory
Post edited by trapper on
<a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=294154344&mt=8" target="_blank">Black or Red</a> - Possibly the first ever iPhone drinking game! Try it tonight.<br />
<a href="http://itunes.apple.com/WebObjects/MZStore.woa/

Replies

  • trappertrapper Posts: 299Registered Users
    edited June 2009
    btw; have checked both paths below and the files do exist??
    /Developer 3.0/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/usr/include/stdarg.h
    /Developer 3.0/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/usr/include/float.h
    
    <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=294154344&mt=8" target="_blank">Black or Red</a> - Possibly the first ever iPhone drinking game! Try it tonight.<br />
    <a href="http://itunes.apple.com/WebObjects/MZStore.woa/
  • manicaesarmanicaesar Posts: 103Registered Users
    edited June 2009
    trapper wrote: »
    btw; have checked both paths below and the files do exist??
    /Developer 3.0/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/usr/include/stdarg.h
    /Developer 3.0/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/usr/include/float.h
    

    I've got similar problem. I have an application which:
    - builds without problem for iPhone Simulator OS 2.2.1
    - builds without problem for iPhone Device OS 3.0
    - builds with above errors for iPhone Device OS 2.2.1 :(

    I've also checked, that the files exists in above paths...

    Any ideas?
    Do you like Age Of War? Have you played 'The Wars' and are not fully satisfied? Try <a href="http://itunes.com/apps/empiresatwar" target="_blank">Empires At War</a> - we bet you will love it!<br />
    <br />
    [SIGPIC][/SIGPIC]<br />
    <br /
  • manicaesarmanicaesar Posts: 103Registered Users
    edited June 2009
    manicaesar wrote: »
    I've got similar problem. I have an application which:
    - builds without problem for iPhone Simulator OS 2.2.1
    - builds without problem for iPhone Device OS 3.0
    - builds with above errors for iPhone Device OS 2.2.1 :(

    I've also checked, that the files exists in above paths...

    Any ideas?

    Ok. I've solved the problem for myself. I found the information, that these files aren't supported for GCC 4.2.

    So I switched to version 4.0. (In Group & Files window on the left, Click Targets -> <Your app name>. Then go to Build tab, find GCC Compiler version option and change it to 4.0)
    Do you like Age Of War? Have you played 'The Wars' and are not fully satisfied? Try <a href="http://itunes.com/apps/empiresatwar" target="_blank">Empires At War</a> - we bet you will love it!<br />
    <br />
    [SIGPIC][/SIGPIC]<br />
    <br /
  • TEEKAYTEEKAY Posts: 4New Users
    edited January 2011
    manicaesar wrote: »
    Ok. I've solved the problem for myself. I found the information, that these files aren't supported for GCC 4.2.

    So I switched to version 4.0. (In Group & Files window on the left, Click Targets -> <Your app name>. Then go to Build tab, find GCC Compiler version option and change it to 4.0)

    Where did you get the 4.0 from. I'm getting the same errors and only have 4.2 showing when i try to change it. Should I already have it and just need to browse to it (if so where?)

    Thanks,
    TK
  • manicaesarmanicaesar Posts: 103Registered Users
    edited January 2011
    TEEKAY wrote: »
    Where did you get the 4.0 from. I'm getting the same errors and only have 4.2 showing when i try to change it. Should I already have it and just need to browse to it (if so where?)

    Thanks,
    TK

    Then, just use 4.2 (or better, set it to 'Latest iOS'). It should work.
    Do you like Age Of War? Have you played 'The Wars' and are not fully satisfied? Try <a href="http://itunes.com/apps/empiresatwar" target="_blank">Empires At War</a> - we bet you will love it!<br />
    <br />
    [SIGPIC][/SIGPIC]<br />
    <br /
Sign In or Register to comment.