Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save NoobsArePeople2/4283018 to your computer and use it in GitHub Desktop.
Save NoobsArePeople2/4283018 to your computer and use it in GitHub Desktop.
"Include path not found (/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/include)"
is an error you can get on Mac OS with Eclipse CDT after upgrading to XCode 4.3+. The reason this
happens is that Apple has removed the /Developer folder. This is a default value in CDT
that you can see by:
1. Right-clicking your project in the Project Explorer. Choose "Properties".
2. Click C/C++ General.
3. Select "Preprocessor Include Paths, Macros, Etc."
4. Select GNU C++ in the "Languages" pane.
5. Expand the "CDT GCC Builtin Compilter Settings".
* Here you'll see "/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/include"
Unfortunately it does not appear this can be edited. The answer is to symlink it.
1. Make sure you have Xcode installed.
2. Make sure you have the Command Line Tools installed. Click Preferences > Downloads > Components > Command Line Tools
3. Open Terminal and type: `sudo mkdir -p /Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1`
4. Enter your password.
5. Type: `cd /Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1`
6. Type: `sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/include include`
7. Enter your password.
Now you'll have the old /Developer/... path symlinked to its new home in the Xcode app bundle.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment