• 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: iPhone Platform: "error: stdarg.h: No such file or directory"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iPhone Platform: "error: stdarg.h: No such file or directory"


  • Subject: Re: iPhone Platform: "error: stdarg.h: No such file or directory"
  • From: Chris Espinosa <email@hidden>
  • Date: Wed, 28 Jan 2009 13:47:59 -0800


On Jan 28, 2009, at 10:36 AM, Andreas Grosam wrote:

Hello,

I'm getting this error
"/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ iPhoneSimulator2.2.1.sdk/usr/include/stdarg.h" error: stdarg.h: No such file or directory
when compiling the following file with either GCC 4.2 or LLVM GCC 4.2:


>>>>>>>>>>>
// test.m
#include <errno.h>
#include <stdarg.h>   // error: stdarg.h: no such file or directory
>>>>>>>>>>>


There is no error when using GCC 4.0 or when on the Mac OS X Platform.

The project is basically a Xcode template project. And yes, the file stdarg.h exists, and the search paths are set. The language does not matter, I used C, C++ and Objective-C, and Objective-C++. Actually, it is the **preprocessor** that fails to locate the file.

The file errno.h is located within the same folder. As far as I can see, there is nothing special with the file stdarg.h It seems the file is banned from within the compiler.

There a few other files, that cannot be located for instance, float.h.

The details are below.

The notable lines are

ignoring nonexistent directory "/Developer/Platforms/ iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/usr/ lib/gcc/i686-apple-darwin9/4.2.1/include"
ignoring nonexistent directory "/Developer/Platforms/ iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/usr/ lib/gcc/i686-apple-darwin9/4.2.1/../../../../i686-apple-darwin9/include"


There is no support for gcc 4.2 in the iPhoneSimulator2.2.1 SDK, or in any other iPhone SDK.

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: 
 >iPhone Platform: "error: stdarg.h: No such file or directory" (From: Andreas Grosam <email@hidden>)

  • Prev by Date: Re: iPhone Platform: "error: stdarg.h: No such file or directory"
  • Next by Date: CPU Sampler Output
  • Previous by thread: Re: iPhone Platform: "error: stdarg.h: No such file or directory"
  • Next by thread: CPU Sampler Output
  • Index(es):
    • Date
    • Thread