JLinX – Blog

Weblog von Jan Linxweiler

Static linking libstdc++ under Linux

Filed under: Development,Linux — Jannis at 12:00 pm on Wednesday, June 7, 2006

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`

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.