When attempting to compile a Gosu C++ project under Visual Studio 2010, I am getting these linker errors:
error LNK2001: unresolved external symbol "long const std::_BADOFF" (?_BADOFF@std@@3JB)
error LNK2019: unresolved external symbol "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" (?facet_Register@facet@locale@std@@CAXPAV123@@Z) referenced in function "public: void __thiscall std::locale::facet::_Register(void)" (?_Register@facet@locale@std@@QAEXXZ)
The same project compiled fine under Visual Studio 2008. I am using the latest version, Gosu 0.7.19. Project properties are configured as per the "GettingStartedOnWindows" wiki entry.
Any ideas?
By jlnr (dev)
Date 2010-04-30 09:07
Since I have never touched VS2010, no. But I would guess that they changed something about iostreams' linking that breaks the version that Gosu is compiled against. The easiest workaround is of course to compile Gosu yourself.
I wonder what I can do to prevent this. I guess the only way would be to provide two versions of Gosu, one built for 2008, one for 2010.
Loading...