Static linking libstdc++ under Linux
I had a problem linking the libstdc++ staticly under Linux.
Here I found a solution.
To build a staticly linked binary use:
-static
To link the STL staticly use:
-static-libgcc -L.
and ad a symbolic Link to the local directory:
ln -s `g++ -print-file-name=libstdc++.a`
Comments Off on Static linking libstdc++ under Linux