Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the location of stdlib.h in XCode 4.3?

Please tell me, what is the location of stdlib.h in XCode 4.3 ?

like image 510
Jake Badlands Avatar asked Feb 22 '12 17:02

Jake Badlands


2 Answers

What was in /Developer in Xcode versions prior to 4.3 is now within the Xcode.app bundle. There are several, one for each supported SDK and Platform:

$ find /Applications/Xcode.app -name stdlib.h
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/include/c++/4.2.1/tr1/stdlib.h
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/include/stdlib.h
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/include/c++/4.2.1/tr1/stdlib.h
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/include/stdlib.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/tr1/stdlib.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdlib.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/tr1/stdlib.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/stdlib.h
like image 163
trojanfoe Avatar answered Nov 16 '22 18:11

trojanfoe


If you install the command line tools (Xcode > Preferences > Downloads), then the file is present at/usr/include/stdlib.h.

like image 5
bames53 Avatar answered Nov 16 '22 18:11

bames53