This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

libstdc++ linked as libstdc++.a


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





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