This question already has an answer here:
I'm looking into developing a C++ program that needs a proprietary 32-bit library and which should run on 64-bit Debian (jessie, amd64). I assume I need to create a 32-bit executable in order to be able to use that 32-bit library (or is there a way to use that library from a 64-bit executable?)
How can I build my program on 64-bit Debian? Or should I use a 32-bit Debian machine to build it, and transfer to the 64-bit Debian afterwards?
I normally use cmake, if that makes any difference.