This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

Re: gcc-3.4.1 -Wl,-static -lstdc++


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


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