Recently, I stumbled across WinBGIm and decided to resurrect a small game I had made in turbo C++ a long time ago. Anyways, I succesfully got WinBGIm, did the necessary steps.
After removing all the errors and building the project in Visual Studio 2008 Professional, I get this error (with dopewars being the name of my cpp file) :
error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.istreambuf_iterator<char,std::char_traits<char> >): (0x0200010a). dopewars.obj
error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.ostreambuf_iterator<char,std::char_traits<char> >): (0x0200010b). dopewars.obj
error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.istreambuf_iterator<wchar_t,std::char_traits<wchar_t> >): (0x0200010c). dopewars.obj
Error 4 error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.ostreambuf_iterator<wchar_t,std::char_traits<wchar_t> >): (0x0200010d). dopewars.obj
fatal error LNK1255: link failed because of metadata errors
Kindly help me regarding what i should do to get rid of these errors. Is there a problem with my code or with something else?