Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Gosu C++ Problem Under VS2010
- - By josephhowse Date 2010-04-29 14:18
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?
Parent - By BeRsErKeR Date 2012-04-06 02:57
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
- 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.
- By Quit Date 2010-05-03 12:07
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.
Up Topic Gosu / Gosu Exchange / Gosu C++ Problem Under VS2010

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill