Hello guys!
I just found out about SFML a few days ago and decided to go with it over SDL, my original choice, to use for my group project for my HS C++ programming class (stronger, faster, probably more beneficial in the long run). We're making a simple 2D side scrolling platform game, so I was taking a gander at the "Displaying a sprite" tutorial, downloaded the source file, and attempted to run it but I got quite a few linker errors.
I'm pretty sure I've installed SFML correctly, and I did change the project's properties to include the graphics and system .libs, so I'm not sure what's up. I hope you guys can help me out! All help is appreciated.
Here's the error:
------ Build started: Project: Testing, Configuration: Debug Win32 ------
Compiling...
Sprites.cpp
Linking...
Sprites.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::Display(void)" (__imp_?Display@Window@sf@@QAEXXZ) referenced in function _main
Sprites.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Input::IsKeyDown(enum sf::Key::Code)const " (__imp_?IsKeyDown@Input@sf@@QBE_NW4Code@Key@2@@Z) referenced in function _main
Sprites.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class sf::Input const & __thiscall sf::Window::GetInput(void)const " (__imp_?GetInput@Window@sf@@QBEABVInput@2@XZ) referenced in function _main
Sprites.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: float __thiscall sf::Window::GetFrameTime(void)const " (__imp_?GetFrameTime@Window@sf@@QBEMXZ) referenced in function _main
Sprites.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::Close(void)" (__imp_?Close@Window@sf@@QAEXXZ) referenced in function _main
Sprites.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Window::GetEvent(class sf::Event &)" (__imp_?GetEvent@Window@sf@@QAE_NAAVEvent@2@@Z) referenced in function _main
Sprites.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Window::IsOpened(void)const " (__imp_?IsOpened@Window@sf@@QBE_NXZ) referenced in function _main
Sprites.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (__imp_??0VideoMode@sf@@QAE@III@Z) referenced in function _main
C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\Testing\Debug\Testing.exe : fatal error LNK1120: 8 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\Testing\Testing\Debug\BuildLog.htm"
Testing - 9 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========