S
S
sitev_ru2015-01-27 15:32:15
linux
sitev_ru, 2015-01-27 15:32:15

How to compile libstdc++ statically?

I am using the Eclipse for C++ environment. How to compile libstdc++ statically so that it does not depend on this library when copied to other computers?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Taratin, 2015-01-27
@Taraflex

www.trilithium.com/johan/2005/06/static-libstdc

H
hiloader, 2015-01-27
@hiloader

I have -static-libgcc -static-libstdc++ working in self-built 4.8.4. It didn't work in 4.7, I had to specify the direct path to the libs via -l/bla/bla/libstdc++.a.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question