help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: g++ -m64 file.cpp


From: James
Subject: Re: g++ -m64 file.cpp
Date: 3 Apr 2006 09:41:46 -0700
User-agent: G2/0.2

Paul Pluzhnikov wrote:
> "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,
> -- 

Thanks.
James



reply via email to

[Prev in Thread] Current Thread [Next in Thread]