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.
i am new to this topic gosu
and let me know as you did to put the libraries in the project gosu visual studio 2010
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.
Rebuild all. Also remember that VS2008 and VS2010 have different toolsets. They are incompatible. If you want to use your vs9 lib in your vs10 project, you have to set the toolset to v90.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill