Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to execute and executable (a.out) on a Unix Platform

Status
Not open for further replies.

menace212

Programmer
Jul 11, 2003
144
US
Unable to execute and executable (a.out) on a Unix Platform. I wrote a C++ program on the Sun box and copied all the necessary include directories (.h). I can compile my program with no errors, but when it returns the a.out and I attempt to execute it I get

#g++ samplecode.cpp
#a.out
ld.so.1: a.out: fatal: libstdc++.so.2.10.0: open failed: No such file or directory
Killed
#


Anybody got any thoughts or suggestions?
 
You may have problem with your LD_LIBRARY_PATH environment variable. Or your implementation of gcc is broken.
What happens if you link statically your a.out ?

Hope This Help
PH.
 
Thanks the problem was I was using g++, it executed when I used gcc to compile the code...

Thanks again..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top