How to build boost using VS10

65 Views Asked by At

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.

1

There are 1 best solutions below

0
On BEST ANSWER

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.