I try to determine which version of libstdc++ is running by the gcc5.1 port on Mac OS X (Yosemite 10.10.3).
The otool
command gives the following information:
/opt/local/lib/libgcc/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.21.0)
What is the meaning of version 7.21.0
? libstdc++7 does really exist?
If you want to find the corresponding GCC version number for the version of libstdc++, do this:
That will tell you which port installed the given file. In my case, that's
libgcc
, I'll assume it's the same for you. To find out the currently installed version oflibgcc
, useport installed
:On my system, that's
libgcc @5.1.0_1 (active)
, so the version of libstdc++ corresponds to the one shipped with GCC 5.1.Note that the compatibility version on OS X is not the same version number as the one given in the file name of the library. It is more equivalent to a minor version number on Linux systems. See https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html#//apple_ref/doc/uid/TP40002013-SW23 for more details on that, in specific this part applies: