Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.