[regex] regex_timer test issue

Hello! In the recent round of Boost.Build V1 vs. Boost.Build V2 test result comparison, there's a problem with regex_timer test. Under V2, the following link error is produced: regex_timer.obj : error LNK2019: unresolved external symbol __imp__PeekMessageA@20 referenced in function __catch$_main$0 .. \bin.v2\libs\regex\example\regex_timer.test\msvc\debug\threading-multi\regex_timer.exe : fatal error LNK1120: 1 unresolved externals Does anybody have an idea what that message is telling and how to avoid it? I can't find anything special in V1 Jamfile. Thanks in advance, Volodya

Does anybody have an idea what that message is telling and how to avoid it? I can't find anything special in V1 Jamfile.
It needs to link to user32.dll, however the source file has: #if defined(_WIN32) && defined(BOOST_REGEX_USE_WIN32_LOCALE) #pragma message(lib, "user32.lib") #endif Which should be sufficient, in fact the library also has: #ifdef _MSC_VER #pragma comment(lib, "user32.lib") #endif In w32_regex_traits.cpp so it should be doubly taken care of, are you doing anything on the command line to suppress these linker directives? John.
participants (2)
-
John Maddock
-
Vladimir Prus