I've been writing a program and a couple of libraries on a 32-bit computer, but when I moved to my other computer (64-bit) I started getting this message when trying to load a shared object.
Code:
Couldn't open /usr/lib/asmp/z80emu.so:
/usr/lib/asmp/z80emu.so: wrong ELF class: ELFCLASS32
z80emu.so is the shared object in question.
I suppose ELFCLASS32 means a ELF file on a 32-bit architecture, which suggests that my compiler, gcc, is still producing 32 bit code. What can I do? do I need to specify -march= and so on?