Binding regex static expression in msvcprt

I am compiling my / MT application and linking to boost -mt-s libraries (multi-threaded statics), but the regex boost library (version 1.45) seems to be pulling in / MD msvcrt.lib, which causes an error linker.

I can solve the problem using /NODEFAULTLIB:msvcrt.lib, but I would rather fix it. Is this a known bug in boost or am I doing something stupid?

Corresponding linker (/ VERBOSE: lib):

Search / boost / stage / lib \ libboost_regex-vc100-mt-s-1_45.lib: Search C: \ Program Files \ Microsoft Visual Studio 10.0 \ VC \ LIB \ msvcprt.lib:

Ready-made LINK search libraries: warning LNK4098: defaultlib 'MSVCRT' conflicts with other libs; use / NODEFAULTLIB: library

+3
source share
2

#/Dot Net, ++ Windows, Boost. DLL/ ( ), .

Visual Studio 2010 boost. , - Win 32 Boost.

+1

- . Visual Studio .

-1

Source: https://habr.com/ru/post/1791887/


All Articles