How to detect if g++ is compiled with libstdc++-v2 or v3?

Benjamin Kosnik bkoz@cygnus.com
Fri May 5 09:12:00 GMT 2000


probably the best way is to check for this macro in c++config.h:

// The current version of the C++ library in compressed ISO date format.
#define __GLIBCPP__ 20000324

-benjamin

On Fri, 5 May 2000 Bruno.Voigt@ic3s.de wrote:

> How may I detect via autoconf if the g++ on the system
> is build with libstdc++-v2 or --enable-libstdcxx-v3 ?
> 
> TIA, Bruno
> 
> 
> 


More information about the Libstdc++ mailing list