This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Question



> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]