Ive only started SFML for a little while, and ive been doing C++ for a little while. Ive been trying to get this silly progrm to work! I cant get the window to open. I basically just retyped the source code:
#include <SFML\Window.hpp>
int main()
{
sf::Window App(sf::VideoMode(800, 600, 32), "SFML test");
bool Running = true;
while (Running)
{
App.Display();
}
return EXIT_SUCCESS;
}
Judging by the errors, I didnt configure something correctly:
1>main.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall sf::Window::~Window(void)" (??1Window@sf@@UAE@XZ) referenced in function "int __cdecl t_main(void)" (?t_main@@YAHXZ)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ) referenced in function "int __cdecl t_main(void)" (?t_main@@YAHXZ)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall sf::Window::Window(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long,struct sf::WindowSettings const &)" (??0Window@sf@@QAE@VVideoMode@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KABUWindowSettings@1@@Z) referenced in function "int __cdecl t_main(void)" (?t_main@@YAHXZ)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (??0VideoMode@sf@@QAE@III@Z) referenced in function "int __cdecl t_main(void)" (?t_main@@YAHXZ)
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>c:\users\haziqu\documents\visual studio 2010\Projects\SFML\Debug\SFML.exe : fatal error LNK1120: 5 unresolved externals
I would really appreciate it if someone just identified something Im doing wrong. Im using VS 2010.
Thanks