id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 1871,regex link error with msvc,cedric.naniot@…,John Maddock,"With msvc 8 and 9 using regex (Boost 1.34.1 and 1.35) in code compiled with /Zc:wchar_t- result in the following error (multi-threaded DLL): msvcprtd.lib(MSVCP90D.dll) : error LNK2005: ""public: __thiscall std::allocator::allocator(void)"" (??0?$allocator@G@std@@QAE@XZ) already defined in libboost_regex-vc80-mt-gd-1_34_1.lib(usinstances.obj) Here is a sample to reproduce this issue : #include #include int main() { { std::vector Dummy; Dummy.push_back(12); } boost::wregex RegExp(L"".*""); int Ret = boost::regex_search(L""jkfghsdhg"", RegExp); return Ret; } ",Bugs,closed,Boost 1.36.0,regex,Boost 1.46.1,Problem,wontfix,,