linking with visual studio .net 2003 and regex
Hi,
I built regex as a library using the source (UNICODE char set but not with
ICU support). I am able to link to the library in a console program but when
I try and link to the library from an MFC project I get a bunch of
unresolved errors. Here is one of them:
myapp error LNK2019: unresolved external symbol "public: class
boost::basic_regex
::assign(wchar_t const *,unsigned int)" (?assign@?$basic_regex@_WU?$regex_traits@_WV?$w32_regex_traits@_W@boost@@@boost@@@boost@@QAEAAV12@PB_WI@Z)
Any help would be greatly appreciated
I built regex as a library using the source (UNICODE char set but not with ICU support). I am able to link to the library in a console program but when I try and link to the library from an MFC project I get a bunch of unresolved errors. Here is one of them:
Any help would be greatly appreciated
I admit to being stumped: the assign member function is declared inline in the header, so I don't see how it can be undefined. You could try defining BOOST_REGEX_NO_EXTERNAL_TEMPLATES to stop the compiler from looking for external templates, but that's only really suppressing the problem not fixing it. If you can put together a small sample project that illustrates the problem then mail it to me and I'll look into it. John.
participants (2)
-
John Maddock
-
louis