ITEM: F1471L
When I try to run an executable, I get "Can't find libC.a".
Question:
I am working on a 580 that's running on 3.2.5. It has the "xlC" C++ compiler
on it. I compiled a file using "xlC" and created an executable file. I
moved this executable to another system that doesn't have the C++ compiler
on it. When I try to run the executable there, it gives me:
"Can't find libC.a".
I guess, I need to do some sort of static linking so that the executable
could access the C++ libraries. How do I go about resolving this problem?
Response:
You need to link to libCns.a instead of libC.a. The libC.a library is a
shared library that must be present on all systems that will run the C++
executable. There is a non-shared version of this library that is used to
statically link a C++ executable, namely libCns.a. Just use -lCns on the
link command line instead of -lC.
Support Line: When I try to run an executable, I get "Can't find libC.a". ITEM: F1471L
Dated: January 1994 Category: N/A
This HTML file was generated 99/06/24~13:30:52
Comments or suggestions?
Contact us