This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-3.4.1 -Wl,-static -lstdc++
- From: James E Wilson <wilson at specifixinc dot com>
- To: werner dot mausshardt at bruker dot de
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 26 Jul 2004 17:31:36 -0700
- Subject: Re: gcc-3.4.1 -Wl,-static -lstdc++
- References: <m1BnBP8-00hzxnC@nike.software.bruker.de>
Werner Mausshardt wrote:
the question/problem is, which compiler options must be supplied
that the (shared) version behaves like the first one;
-static-libgcc -Wl,-static -lstdc++
Just -static is all you need.
g++ -Wall -O2 -static -o otto248 otto248.c
If that doesn't work, then something is broken.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com