470,874 Members | 1,789 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,874 developers. It's quick & easy.

error with _HAS_ITERATOR_DEBUGGING

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?$allo cator@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

Mar 3 '06 #1
1 1494
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!

Mar 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Tony Wright | last post: by
1 post views Thread by Aravind | last post: by
7 posts views Thread by p | last post: by
1 post views Thread by ngaloppo | last post: by
5 posts views Thread by 3mice | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.