开发者

Using gmp 5 on CentOs 5.3

I'm using CentOS version 5.3 x86_64, Intel X5550 processor. I compiled gmp 5.0.0 on this system. When I try to run it, I'm getting the error :-

error while loading shared libraries: libgmp.so.3: wrong ELF class : ELFCLASS64

which I can't understand since I'm working on a 64-bit system with a 64-bit isa.

Any help would be welcome.

T开发者_如何学Gohanks


GMP is a library. What do you mean by "try to run it" ?

Most likely you are running a 32-bit executable, which requires a 32-bit version of libgmp.so.3. Do file /path/to/executable. If it says " ... ELF 32-bit ...", you must build a 32-bit version of gmp by configing it with ./configure CFLAGS=-m32 CXXFLAGS=-m32.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜