I have been fiddling around trying to get Eclipse for C++ working on Mac OS X Lion.
I have downloaded Xcode 4.3, so there should be a /Developer/usr folder with gcc, g++, make and other compiler commands. However, while I have a /Developer folder, I do not have a /Developer/usr folder anywhere.
Where can I get this from? I think it may have disappeared when I attempted to symlink the contents of /Developer/usr/bin to the default /usr/bin for Eclipse to use. Not sure if this can even happen.
This has driven me crazy for about a week now!
/Developer
was moved to /Applications/Xcode.app/Contents/Developer
in Xcode 4.3.
Install "Command Line Tools" from "Download Preferences" in Xcode 4.3 and above.

You may also want to consider installing the new Apple Command Line Developer Tools package to get a full setup including manpages. I commented on the issue and provided the linky here.
来源:https://stackoverflow.com/questions/9376042/mac-os-x-lion-has-no-developer-usr-folder