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]

g++ question


I'm new to g++ I compiled a c++ program on a development server snd then
binary ftp 
transferred the executable to a test server.

When I run the code on the test server, I get:
ld.so.1: pass: fatal: libstdc++.so.2.10.0: open failed.

I assume that libstdc++ is the shared object containing the base c++ classes
that my application needs
to run?

My question is, is it possible to static link the object code when compiling
the executable so that the
shared object modules are not required on the test server?

The compile line I am using is:
g++ -g -o pass parser.cpp


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