std::iostream link error vs2010 rc1

Posted by Martin Beckett on Stack Overflow See other posts from Stack Overflow or by Martin Beckett
Published on 2010-03-16T05:57:51Z Indexed on 2010/03/16 6:36 UTC
Read the original article Hit count: 637

Filed under:
|

I'm converting a project from vs2008 to vs2010 and getting linker errors for std:ifstream/ofstream

error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::is_open(void)const " (__imp_?is_open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QBE_NXZ)

Building static (/MT) or dll (/MD) with unicode or standard and release/debug gives the same error. Manually adding libcpmtd.lib (static) or msvcprtd.lib (dll) to the linker doesn't help.

Has anyone else seen this?

© Stack Overflow or respective owner

Related posts about c++

Related posts about visual-studio-2010