diff --git a/example/Jamfile b/example/Jamfile index 36ac8ccf..11fc8177 100644 --- a/example/Jamfile +++ b/example/Jamfile @@ -1,13 +1,11 @@ subproject libs/regex/example ; -NOCARE user32.lib ; exe timer : timer/regex_timer.cpp ../build/libboost_regex$(SUFLIB) : $(BOOST_ROOT) BOOST_RE_NO_LIB=1 - <*>user32.lib : debug dynamic @@ -146,3 +144,4 @@ exe regex_split_example_2 : snippets/regex_split_example_2.cpp + diff --git a/src/w32_regex_traits.cpp b/src/w32_regex_traits.cpp index 17857e74..0f5e1a0d 100644 --- a/src/w32_regex_traits.cpp +++ b/src/w32_regex_traits.cpp @@ -32,6 +32,13 @@ #if defined(_WIN32) && !defined(BOOST_RE_NO_W32) +// +// VC6 needs to link to user32.lib: +// +#ifdef BOOST_MSVC +#pragma comment(lib, "user32.lib") +#endif + namespace{ //