ld.so.1: ./a.out: fatal: libstdc++.so.4: open failed: No such file or directory

Ian.C.Stong@mail.sprint.com Ian.C.Stong@mail.sprint.com
Fri Aug 30 08:44:00 GMT 2002


On solaris 2.8 I installed gcc 3.1.  GCC works fine and g++ on a file
doesn't give any errors.  But trying to run the compiled program (a.out)
gives the following error:

ld.so.1: ./a.out: fatal: libstdc++.so.4: open failed: No such file or
directory


The libstdc++.so.4 file does exist as does ld.so.1 so not sure what the
problem is or how to fix.   

Copy of simple code I am testing with:

#include "iostream.h"

main(){
        cout<<"Hello gcc\n";
        return 0;
}



Thanks





More information about the Libstdc++ mailing list