I'm compiling this in a Travis CI virtual machine. I found this, which says cross compiling in this manner is not actually possible using a toolchain: īut it was still suggested as a solution elsewhere. I've also tried specifying -m32 as a CMAKE_CXX_FLAGS setting, as well as setting CFLAGS and CXXFLAGS to -m32. In that time, we have to use this feature.
Sometimes we need to compile and execute a code into some 32bit system. I've tried using /usr/lib32 as the CMAKE_FIND_ROOT_PATH variable. Nowadays the compiler comes with default 64-bit version. I've tried using a toolchain to specify 32 bit library locations: I've tried a few different things to get it to compile as 32 bit. This is the error i get: /usr/lib/x86_64-linux-gnu/libnsl.so: error adding symbols: File in wrong format I'm using gcc 6, with these packages installed: linux-libc-dev See the Previous Versions tab for the Windows 64-bit version used with the main Infiniium oscilloscope application. When it then links with my 32 bit library it fails to link because a dependent library is 64 bit. The 32-bit version of MATLAB Compiler Runtime 7.15 is used with Infiniium oscilloscope compliance applications. I'm trying to cross-compile XercesC on a 64 bit system to build a 32 bit binary, but it keeps finding 64 bit libraries to link with.
Read these guidelines for how to ask smart questions.įor learning books, check The Definitive C++ Book Guide and Listįlair your post as SOLVED if you got the help you were looking for! If you need help with flairs, check out ITEM 1 in our guidelines page. Im sure there is a way I could compile a 64-bit version from the source. Hasty-sounding questions get hasty answers, or none at all. Ive been using the EPANET toolkit dll with a 32-bit version of MATLAB for some. Since the x86-64 architecture is fully backwards compatible, the computer just works with its 32-bit OS and applications, which makes this post. New to C++? Learn at READ BEFORE POSTINGīefore you post, please read our sticky on proper code formatting. To be fair to my desktop computer, it does have a 64-bit CPU (Core 2 Duo E4600), but the OS (Windows XP) is 32-bit and so is the compiler, which means that the CPU is actually treated as 32-bit. For general discussion and news about c++ see r/cpp. This is a subreddit for c++ questions with answers.