RE: g++ and libstdc++.a

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I have a similar problem (mentioned in the mail below)

My final execitable has dependencies on libgcc_s.so.1 and libstdc++.so.5(in
usr/local/lib on developement m/c) apart from a dependency on a shared
object(say libxyz.so) which is produced during the building of the
application. My target m/c does not have libgcc_s.so.1 and libstdc++.so.5
files.
I want to know how I can build libxyz.so including the libgcc_s.so.1 and
libstdc++.so.5 so that the final executable does not have a dependency on
these two files. I have also tried explictly linking libgcc_s.so.1 and
libstdc++.so.5 with my app but this did not remove the dependency.

Could anyone give me some pointers ?

Thanks,

-----Original Message-----
From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx]On
Behalf Of Venkatakrishnan, V
Sent: Friday, August 29, 2003 10:47 AM
To: gcc-help@xxxxxxxxxxx
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.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux