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


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

Re: Cannot link C++ programs statically with GCC 3.1 (CVS)?


>>>>> Daniel Egger writes:

Daniel> I cannot link C++ programms statically anymore with the currect CVS gcc
Daniel> because there's no static version of libgcc_s avaible which seems to be
Daniel> really needed;

Daniel> g++ -o Compress Compress.o Huffman.o bitfstream.o  -Wl,-static -lstdc++	
Daniel> /usr/bin/ld: cannot find -lgcc_s

Daniel> Maybe I just miss something hers so what's the preferred way to build 
Daniel> static binaries now?

	Why are you using -Wl,-static instead of the GCC -static option?

David


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