std::exception dtor linker error

I have an error when I'm linking my project, ported from VS7.1 to VS8.0 beta 2:

LIBCMTD.lib(stdexcpt.obj) : error LNK2005: "public: virtual __thiscall std::exception::~exception(void)" ( 1exception@std@@UAE@XZ) already defined in TestStdCpp.obj

LIBCMTD.lib(stdexcpt.obj) : error LNK2005: "public: virtual char const * __thiscall std::exception::what(void)const " ( what@exception@std@@UBEPBDXZ) already defined in TestStdCpp.obj

Here is my repro solution (350 kb zipped)


http://loyso.m6.net/vs8_link_bug.zip

Anyone - could you tell me, how to fix this




Answer this question

std::exception dtor linker error