Intel Compilers on OS X

The Intel compilers icc for C/C++ and ifort for Fortran are available through ides.

Resolving linking issues with Lion

To resolve some issues, it apparently helps to run

sudo icc
sudo ifort

When compiling with the latest OS X, you might encounter linking errors

ld: library not found for -lSystemStubs

This happens because some programs try to link libraries that are no longer available on Lion.

The workaround is to keep the 10.6 SDK for Xcode installed, and create symlinks to these library files

sudo ln -s /Developer/SDKs/MacOSX10.6.sdk/usr/lib/libSystemStubs_debug.a /usr/lib/
sudo ln -s /Developer/SDKs/MacOSX10.6.sdk/usr/lib/libSystemStubs_profile.a /usr/lib/
sudo ln -s /Developer/SDKs/MacOSX10.6.sdk/usr/lib/libSystemStubs.a /usr/lib/