error with _HAS_ITERATOR_DEBUGGING

K

kennyknecht

Hi all,

I have made a C++ project with _HAS_ITERATOR_DEBUGGING set to 0 and
_DEBUG 1 but then I get a link error
error LNK2001: unresolved external symbol "public: void __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::`copy constructor closure'(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > &)"
(??_O?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXAAV01@@Z)
in one particular file...
This looks a copy constructor of std::string but that get's called a
zillion times in the code!
Obliviously this is not my code and it runs fine in debug and release
mode. Is this a bug?
Can anyone give me some advice?

Thanks,

Kenny
 
P

prob

Hi Kenny,

Throwing a std::string with _HAS_ITERATOR_DEBUGGING=0 will generate
this error. There may be other things you can do to create this link
error. If you aren't throwing a std::string, perhaps this will help
you track your problem down.

throw(std::string("link error"));

Hope this helps

Rob
PS Hi Pete!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top