libstdc++ linked as libstdc++.a

Mike Bezman mab@sycon-design.com
Tue Nov 12 17:04:00 GMT 2002


Hi !!
I am trying to build an C++/C executable using gcc3.2 on RedHat
7.2("Intel").
I don't want the users on the other machines to be required to have
libstdc++.so on those machines.

For example with simple app hello.cpp
the commmand I tried : gcc -o hello -lstdc++ hello.cpp and when running on
different computer (which doesn't have libstdc++) I am getting - error while
loading shared libraries libstdc++.so.5 ....

How to solve this problem (i.e. I guess force the app. to link libstdc++.a
instead) ?

Thanks, Mike






More information about the Gcc-help mailing list