Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
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"




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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.