Tuesday, 15 September 2015

Including boost libraries in C++ Win x64 application -


I have a C + + console application that I have successfully compiled for Windows XML platforms using the Microsoft SDK compiler . Now, I want to compile the same source code for the X64 system. I am using Boost libraries (file system, program options, and some other methods). I have recompiled the recompiled libraries for the x64 system (using "bjam --toolset = msvc-9.0 address model = 64 --build-type = full step") Now when I try to compile the source file If I do, there is a complaint about the libraries promoting it.

I first compiled "libboost_filesystem-vc120-mt-1_55.lib" and successfully. I now include "boost_filesystem-vc90-mt-1_55.lib" , but Linker complains:

LINK: fatal error LNK1104: file 'libboost_filesystem-vc120 I can not open it - Mt-1_55.Lib '

I do not know why it still is for "libboost_filesystem-vc120-mt-1_55.lib" library Asks.

Pre-Thanks,

Certify

Binary compatibility For reasons, you can not link compiled Boost with different compilers from the ones used. In this case you are using vc120 for your main compiler, but increasing compiling with vc90. Two toolets (deliberately) do not produce binary consistent results.

In this case you need to promote the visa 20122 x64 in the original command prompt which comes with IDE. This will produce the necessary libraries.


No comments:

Post a Comment