NO such file or directory for the files -----stdarg.h and float.h?

B25Dec picture B25Dec · Oct 11, 2009 · Viewed 9.6k times · Source

I am using some files on .mm extension in the xcode project for compiling these files we have added the LLVM-GCC 4.2 in the build setting after adding this compiler this showing the error

/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory

/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.sdk/usr/include/float.h:8:24: error: float.h: No such file or directory

i have no idea how to remove this error any help to remove this error.

thanks

Balraj

Answer

elder_george picture elder_george · Oct 11, 2009

These headers aren't supported in gcc 4.2 which is used by default on Mac OSX.

Switch to version 4.0 (it is described here)