2) Launch the script bootstrap.bat then .\b2 and everything was OK.
3) Add the path of Boost in the CMakeLists.txt by adding this line
set( BOOST_ROOT "c:/libraries/boost_1_55_0" )
4) Configure the main code using CMake (in Specify the generator for this project I've chosen Visual Studio 12 2013 Win64 in the list. Then Generate and a Project.sln file is generated.
5) I open Project.sln in VS and try build solution and there I get the error:
Description: error LNK1112 module machine type 'x86' conflicts with target machine type 'x64'
Does anyone have the solution to this problem? I've already tried some solutions proposed on the net for the error LNK1112, but they didn't work for my case...
Any help will be appreciated.
Thank you in advance. Bacem
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using Windows 7 Service Pack 1, in 64-bit architecture.
I'm trying to compile (using Visual Studio Express 2013 update 4 and CMake 3.1.3) a code that uses: ITK, Liblinear and Boost libraries.
My problem is that I get the following error when building my project:
error LNK1112 module machine type 'x86' conflicts with target machine type 'x64'
Let's suppose that ITK and Liblinear were successfully configured and built.
There are the steps that I followed to build my project:
1) Download Boost 1.55.0 from this link http://sourceforge.net/projects/boost/files/boost/1.55.0/ (there is no option win32 or win64...)
2) Launch the script bootstrap.bat then .\b2 and everything was OK.
3) Add the path of Boost in the CMakeLists.txt by adding this line
set( BOOST_ROOT "c:/libraries/boost_1_55_0" )
4) Configure the main code using CMake (in Specify the generator for this project I've chosen Visual Studio 12 2013 Win64 in the list. Then Generate and a Project.sln file is generated.
5) I open Project.sln in VS and try build solution and there I get the error:
Description: error LNK1112 module machine type 'x86' conflicts with target machine type 'x64'
file: libboost_program_options-vc120-mt-gd-1_55.lib(value_semantic.obj)
Does anyone have the solution to this problem? I've already tried some solutions proposed on the net for the error LNK1112, but they didn't work for my case...
Any help will be appreciated.
Thank you in advance. Bacem