[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: g++ -m64 file.cpp
From: |
Paul Pluzhnikov |
Subject: |
Re: g++ -m64 file.cpp |
Date: |
Fri, 31 Mar 2006 19:38:25 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) |
"James" <hslee911@yahoo.com> writes:
> It's complainig about "wrong ELF class".
That means that dynamic loader found only 32-bit libraries, but
needs 64-bit ones.
> How do I fix it?
Set your LD_LIBRARY_PATH correctly. Probably:
LD_LIBRARY_PATH=/usr/local/lib/sparcv9 ldd a.out
If that doesn't work, try searching for 64-bit libstdc++.so.6
like this:
cd /usr/local/lib &&
find . -name libstdc++.so.6 | xargs file | grep SPARCV9
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.