I am installing these packages: g++-4.7
gcc-4.7-multilib
and I set CXX
to g++-4.7
I validate that the compiler is indeed 4.7 by issuing ${CXX} --version
after that I call cmake like this:
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-m32" .
My project has only c++ source files so no need for C flags. The errors I get on travis are:
/usr/include/c++/4.7/cstdio:43:28: fatal error: bits/c++config.h: No such file or directory
any ideas? I have no problems using -m64
EDIT:
just tried also with g++-4.7-multilib
(g++ instead of gcc) but still no luck - same error.