Is this a drop-in replacement for the libstdc++ thats shipped with g++?

0
Posted

Is this a drop-in replacement for the libstdc++ thats shipped with g++?

0

Yes, as of 2.90.8, it is intended as such. The installation instructions cover this in more detail, but replacing the older library requires rebuilding some of the code that comes with g++. If you do not want to do that, then you’ll be missing out on a lot of functionality, but it can still be done. In that case, you can use the same procedure that used to be required: • Build GCC as usual. • Build libstdc++-v3 as described in the installation document, under the section “without GCC sources.” Be aware that you will lose the std:: namespace encapsulation. • Build your code using -I and -L options so that GCC finds the libstdc++-v3 headers and library before the older headers in the GCC include tree. If you configured libstdc++-v3 to install under a directory called /lib3, for example, the command line would look something like g++ -Wall -I/lib3/include/g++-v3 -L/lib3/lib foo.cc -o foo More information (such as using SGI or GNU extensions, and setting the runtime library path) can be fo