[Top][All Lists]

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

g++ -m64 file.cpp

From: James
Subject: g++ -m64 file.cpp
Date: 31 Mar 2006 16:52:02 -0800
User-agent: G2/0.2

Tesing gcc-3.4.3 & gcc-4.0.0 on Solaris 2.8 and 2.9 (64 bit machines)

gcc -m64 file.c => works fine, but
g++ -m64 file.cpp => compiles OK, but erorr in execution.

$ LD_LIBRARY_PATH=/usr/local/lib ldd a.out =>        /usr/local/lib/  - wrong
ELF class: ELFCLASS32 =>     /usr/lib/64/ =>         /usr/local/lib/  - wrong
ELF class: ELFCLASS32 =>     /usr/lib/64/ =>    /usr/lib/64/

It's complainig about "wrong ELF class".
How do I fix it?
Is this a gcc configure/build problem or something else?
Thanks for your help.


reply via email to

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