Currently Being ModeratedApr 13, 2012 4:29 AM (in response to gcarcass)
I have Mac OS X Lion 10.7.3 and could now update and no update button is enabled for current XCode Version 4.2.1. Thanks for advice to go to http://adcdownload.apple.com/Developer_Tools/xcode_4.3_for_lion_21266/xcode_43_l ion.dmg to download image now.
Currently Being ModeratedJun 4, 2012 12:27 PM (in response to tbelectronics)
It's the correct link, but the download will only work if you access it from the main developer downloads page at https://developer.apple.com/downloads/index.action. Simply search for XCode, the current version should be the top result.
Currently Being ModeratedJul 23, 2012 9:35 AM (in response to gcarcass)
I downloaded the disc image, can run Xcode and from there installed the command line tools... I now get an error when using gcc, which is that stdio.h cannot be found. A solution has been posted here to be:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/
But then, I have the disk image, so there is no /Applications/Xcode.app. What to do?
Currently Being ModeratedJul 23, 2012 11:23 AM (in response to larsplus)
Are you running Xcode off the disk image? If so, mount the disk image and drag Xcode to your Applications folder to install Xcode. After installing Xcode, the xcode-select command should work.
If you installed Xcode in a place other than your Applications folder, replace the following in the xcode-select command:
With the following:
Currently Being ModeratedJul 24, 2012 5:54 AM (in response to Mark Szymczyk)
Thanks a lot! I had indeed just run it from the disc image. Now all the folders exist, however, stdio.h can still not be found, even if I xcode-select the folder where the file is :
Currently Being ModeratedJul 24, 2012 11:58 AM (in response to larsplus)
I don't do a lot of compiling from the command line so I can't give you a specific solution. I can recommend some things to try. First, try compiling the program with a different compiler. You can use the llvm-gcc command, which uses GCC for the front end and LLVM for the back end. Or you can use clang. Where you would enter gcc on the command line, enter clang.
Second, check to see if the compiler can find other system header files. That would let you determine if the problem is limited to stdio.h or applies to all system headers.
Third, create a command-line tool project in Xcode. Add your code to the project and see if it compiles.
Currently Being ModeratedJul 25, 2012 1:27 PM (in response to larsplus)
After upgrading to 10.8 and Xcode 4.4, I also had the problem that the C compiler is not on the path, and when I include /Applications/Xcode.app/Contents/Developer/usr/bin, it can't find the standard includes.
Since the command line tools are now a seperate download from within Xcode, I figured I'd check, and lo and behold, I did need to reinstall them. (Preferences, Downloads, Command Line Tools) MacPorts can update itself once more.