This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Cannot link C++ programs statically with GCC 3.1 (CVS)?
- To: GCC Mailinglist <gcc at gcc dot gnu dot org>
- Subject: Cannot link C++ programs statically with GCC 3.1 (CVS)?
- From: Daniel Egger <degger at fhm dot edu>
- Date: 14 Oct 2001 16:04:39 +0200
Hija,
I cannot link C++ programms statically anymore with the currect CVS gcc
because there's no static version of libgcc_s avaible which seems to be
really needed;
g++ -o Compress Compress.o Huffman.o bitfstream.o -Wl,-static -lstdc++
/usr/bin/ld: cannot find -lgcc_s
Maybe I just miss something hers so what's the preferred way to build
static binaries now?
--
Servus,
Daniel