This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Question
- To: "Martha Slaughter (r58031)" <r58031 at email dot sps dot mot dot com>
- Subject: Re: Question
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Fri, 18 May 2001 12:36:42 -0700 (PDT)
- cc: libstdc++ at gcc dot gnu dot org
> 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
- References:
- Question
- From: Martha Slaughter (r58031)