Looks like you're trying to link with the 64 bit library when you need the 32 bit one. x86_64 means 64 bits. The 32 bit versions may not be installed.