Actually the easiest and most complete approch would
be to download and install the latest version of Xcode
and then go into Xcode and install the optional command
After that, you no longer need to deal with Xcode and
develop code any which way you want.
You will likely need to add INCLUDE paths
either to your environment variables or as arguments
on the command line.
Note that the latest version of Xcode no longer uses the
root /Developer directory and everything is encapsulated
within the Xcode app. Installing the command line tools
will, among other things, install simlinks in the typical
Unix locations to the elements that are located in Xcode App.
Ah! Now I that all makes sense! I downloaded the latest Xcode and all the tools the installation asked me to. Thanks a lot for explaining it. Don't have time to get into it right now, but I can't wait to try it out.
Did that include the additional components found under
the menu Xcode->Preferences... and in downloads,
update: BTW, did the hello program you had in another thread and
it worked just fine for me.