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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Regarding C++ compiler on solaris-2.6 on E450 machine.

Status
Not open for further replies.

arvind75

MIS
Jan 15, 2001
3
US
I have FSFgcc, version-2.8.1 compiler software installed on E450 with solaris-2.6 version.

i am trying to excute a c++ program and i am getting following error when i excute it as shown below at the shell prompt,
#g++ xyz1
ld: elf error: file xyz1: unknown type, unable to process using elf(3E) libraries
ld: fatal: library -lstdc++: not found
ld: fatal: File processing errors. No output written to a.out

i have the LD_LIBRARY_PATH variable set as shown below
LD_LIBRARY_PATH=/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1

please let me know how to get ride of this.
 
Your C/C++ source file should have extantion .c for C or .cpp for C++.
You better download new version 2.95.2
Be sure that you have this library libstdc++.a or libstdc++.so in this directory.
And try to use
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1
in you command string or makefile.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top