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]
Other format: [Raw text]

Re: Building an application on one machine and running it on other


>>>>> Abhijit H Bhosale writes:

Abhijit> I am working on AIX 4.3.2
Abhijit> Building an application using GCC3.2.
Abhijit> I am dynamically linking the stdc++ library with my application.
Abhijit> Now if I try to run the same application on other AIX machine,
Abhijit> it gives me error
Abhijit> exec(): 0509-036 Cannot load program dbAgent because of the following 
Abhijit> errors:
Abhijit> 0509-150   Dependent module libstdc++.a(libstdc++.so.5) could 
Abhijit> not be loaded.
Abhijit> 0509-022 Cannot load module libstdc++.a(libstdc++.so.5).
Abhijit> 0509-026 System error: A file or directory in the path name does 
Abhijit> not exist.

Abhijit> On trying the dump -H , it gives the path which are actualy on the 
Abhijit> machine on which I build that
Abhijit> application. How should I make sure that my application will run on any 
Abhijit> AIX machine.

	It would be best for you to install the GCC runtime (libgcc,
libstdc++, etc.) on all machines where you plan to run the application.
If not, you can try using the GCC "-static" flag when linking the
application with GCC.

David


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