I'm getting these errors:
1>test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::`vbase destructor'(void)" (__imp_??_D? $basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ) referenced in function _main
1>test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::basic_ofstream<char,struct std::char_traits<char>>(void)" (__imp_??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@XZ) referenced in function _main
This test code works fine:
int main(int argc, char **argv)
{
std::ofstream game_record_output;
}
until I include a .h from an older project that was converted from VS 2003 .NET
Firstly I thought it could have some problem related with this:
http://msdn.microsoft.com/en-us/library/8h8eh904(v=vs.90).aspx
But then, I've already checked that just MSVCRT.LIB and MSVCPRT.LIB are being linked, so the old iostream is not being linked...
I'm not sure why this happen, I'm supposing that in include chain some wrong file is being included, but I've already search the include chain for the old iostream .h's files (i.e: (fstream.h, iomanip.h, ios.h, iostream.h, istream.h, ostream.h, streamb.h, and strstrea.h) )
So, is there anything else that I should check?
The project use MFC.