30 Jan, 2013, quixadhal wrote in the 43rd comment:
gcc has a different flag to say "don't load the standard library you normally load", which you can use and then hand-load libc or c++ or whatever. I don't recall having an issue under debian on a 64-bit intel, but perhaps osx has a different version of gcc/g++ (or those flags got added since I tested it a few weeks ago).
@Runter: Yeah, on OS X you really need to use Clang. The GCC that comes with OS X is pretty outdated and I'm using some C++11 features.