Link different C++ standard libraries on Mac OS X
Now that multiple C++ standard libraries can exist on Mac OS X, it now looks like quite a chaotic situation. According to https://stackoverflow.com/a/8457799/1772681 , mixing libstdc++ and libc++ will result in link error, which catches such dangerous situation and is a good thing. On the other hand, There are still 2 situations need more investigation, and I have created a few test cases for this in github gist ( https://gist.github.com/manphiz/7195515 ). It confirms that mixing dynamic libraries that link to libstdc++ (either from system or vanilla GNU GCC) and libc++ (system) will result in