This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
g++ and libstdc++.a
- From: "Venkatakrishnan, V" <v dot venkatakrishnan at channels dot usa dot xerox dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 29 Aug 2003 01:16:59 -0400
- Subject: g++ and libstdc++.a
Hi,
I've this application on AIX 4.3.3 built using g++. When I deploy
it on the target machine and run it I get the following error.
exec(): 0509-036 Cannot load program myApp because of the following errors:
0509-150 Dependent module libstdc++.a(libstdc++.so.5) could not be
loaded.
0509-022 Cannot load module libstdc++.a(libstdc++.so.5).
0509-026 System error: A file or directory in the path name does not
exist.
My development machine has /usr/local/lib/libstdc++.a whereas my
target machine does not. I'm not really sure why. Is libstdc++.a installed
as part of the gcc binaries installed on AIX (not installed on my target
m/c) or is it part of bos.adt.lib?
Also, I could remove the dependency on libstdc++.a by compiling my
app using gcc, but that would require a lot of effort in converting the code
to C. I did try explicitly linking libstdc++.a to my app during linking but
that does not remove the dependency.
Has any of you faced such a thing? Need some help here please.