Question

Benjamin Kosnik bkoz@redhat.com
Fri May 18 12:36:00 GMT 2001


> Is there a difference between libstdc++.a.2.10.0 and
> libstdc++.so.2.10.0?

the *.so libraries are shared, the *.a are static

if you invoke g++ without any additional flags, it will attempt to use 
the shared libraries: if you do 'ldd a.out' on your executable you'll see 
what I mean.

if  you invoke g++ like so: 'g++ -static foo.cc' your resulting 
executable will be statically linked.

-benjamin



More information about the Libstdc++ mailing list