This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++ linked as libstdc++.a
- From: bjorn rohde jensen <bjensen at fastmail dot fm>
- To: Mike Bezman <mab at sycon-design dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 13 Nov 2002 10:50:49 +0100
- Subject: Re: libstdc++ linked as libstdc++.a
- References: <070201c28a9f$25be5920$278121cf@sycondesign.com>
- Reply-to: bjensen at fastmail dot fm
Hi,
Right, you do have to link statically to libs,
you dont want to require be installed on target
hosts. One way to do that is to tell g++ not to
link with standard libs and handle that yourself
explicitly, which enables you to choose individual
libs to link with dynamically or statically.
You might need to get g++ to tell you, which
supporting libs need to be linked in, using the -v
option during an ordinary linking of your program.
Yours sincerely,
Bjorn