views:

29

answers:

1

While executing one of my C++ Application, I am getting a weird message on one of my Cento x64 box where at the same time another machine with similar configuration is perfectly running the Application.

Error message is:

/myapp: error while loading shared libraries: /myapp: wrong ELF class: ELFCLASS64

N.B: 'myapp' is not some shared library (.so) but actual application itself.

All 3rd party libs being linked with myapp have also been compiled on machine on which I am executing the application. I have compiled libmysqlpp, libthrift and libACE libraries and anything else necessary has been installed through yum.

A: 

Everything is resolved.

Actually I was trying to load my application dynamically using ld-linux.so.2 in order to make use of custom library folder but ld-linux.so.2 only executes 32-Bit binaries. Now I am using ld-linux-x86-64.so.2 and everything seems good :)