This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Problems in compilation using gcc-2.95 on Sparc-SunOS
- To: gcc at gcc dot gnu dot org
- Subject: Problems in compilation using gcc-2.95 on Sparc-SunOS
- From: hkumar at hss dot hns dot com
- Date: Tue, 29 Feb 2000 17:10:57 +0530
Hi,
I compiled a gcc native compiler on Sun Sparc platform running SunOS 5.6. I used
binutils 2.9.1 to compile gcc.
---------------snip--------------
gomti~ $ uname -a
SunOS gomti 5.6 Generic_105181-19 sun4u sparc SUNW,Ultra-Enterprise
gomti~ $
-----------------snip--------------
Now when I compile a simple program I get the error as gievn below
--------------snip--------------
gomti~ $ cat test.cpp
#include <vector>
#include <string>
main() {
vector<string> v;
v.push_back("xyz");
}
gomti~ $ /cm_data/spwemulator/tools/gcc-native/bin/g++ test.cpp
/cm_data/spwemulator/tools/gcc-native/lib/gcc-lib/sparc-sun-solaris2.6/2.95/libgcc.a:
could not read symbols: Bad value
collect2: ld returned 1 exit status
gomti~ $
--------------snip---------------
Can anybody please suggest a solution
Thanks and Regards
-harendra