You have typed your answer there, you are trying to run a 32bit compilation on a 64bit system. Some information (it wont solve your problem, but may explain it):
https://blog.mattmags.com/2007/06/30/accessing-32-bit-dlls-from-64-bit-code/
... View more