Search code examples
visual-studio-2010cmakeboost-regexvc10

How to build boost using VS10


I have an issue with compiling Boost using VC: error: LNK1104: cannot open file 'libboost_regex-vc100-mt-gd-1_53.lib'

The most interesting is that issue is observed only using VC10 compiler. MinGW builds successfully Boost regex.

Does anybody know how to fix it ?

PS: I cannot use b2, bjam and etc., because I have retrieved part of boost regex using bcp module, and I need to compile it using VC10 and CMake.


Solution

  • I have fixed an issue. Just added at the top level CMakeLists.txt file: add_definitions( -DBOOST_ALL_NO_LIB )

    Thanks, all who participate in helping me.