Hello!
Ive just tried setting up a project that are going to use SFML 2.1
I followed the tutorial on SFML website but i get alot of errors when i try to run it.
Errors looks like this
Error 18 error LNK1120: 17 unresolved externals c:\users\admin\documents\visual studio 2012\Projects\SFML 2.1 game\Debug\SFML 2.1 game.exe SFML 2.1 game
Error 15 error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::Green" (?Green@Color@sf@@2V12@B) c:\Users\Admin\documents\visual studio 2012\Projects\SFML 2.1 game\SFML 2.1 game\main.obj SFML 2.1 game
Error 16 error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B) c:\Users\Admin\documents\visual studio 2012\Projects\SFML 2.1 game\SFML 2.1 game\main.obj SFML 2.1 game
Error 14 error LNK2019: unresolved external symbol "public: __thiscall sf::CircleShape::CircleShape(float,unsigned int)" (??0CircleShape@sf@@QAE@MI@Z) referenced in function _main c:\Users\Admin\documents\visual studio 2012\Projects\SFML 2.1 game\SFML 2.1 game\main.obj SFML 2.1 game
Error 7 error LNK2019: unresolved external symbol "public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (??0Color@sf@@QAE@EEEE@Z) referenced in function _main c:\Users\Admin\documents\visual studio 2012\Projects\SFML 2.1 game\SFML 2.1 game\main.obj SFML 2.1 game
Error 10 error LNK2019: unresolved external symbol "public: __thiscall sf::RenderWindow::RenderWindow(class sf::VideoMode,class sf::String const &,unsigned int,struct sf::ContextSettings const &)" (??0RenderWindow@sf@@QAE@VVideoMode@1@ABVString@1@IABUContextSettings@1@@Z) referenced in function _main c:\Users\Admin\documents\visual studio 2012\Projects\SFML 2.1 game\SFML 2.1 game\main.obj SFML 2.1 game
Error 1 error LNK2019: unresolved external symbol "public: __thiscall sf::String::String(char const *,class std::locale const &)" (??0String@sf@@QAE@PBDABVlocale@std@@@Z) referenced in function _main c:\Users\Admin\documents\visual studio 2012\Projects\SFML 2.1 game\SFML 2.1 game\main.obj SFML 2.1 game
Error 2 error LNK2019: unresolved external symbol "public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (??0VideoMode@sf@@QAE@III@Z) referenced in function _main c:\Users\Admin\documents\visual studio 2012\Projects\SFML 2.1 game\SFML 2.1 game\main.obj SFML 2.1 game
Error 4 error LNK2019: unresolved external symbol "public: bool __thiscall sf::Window::isOpen(void)const " (?isOpen@Window@sf@@QBE_NXZ) referenced in function _main c:\Users\Admin\documents\visual studio 2012\Projects\SFML 2.1 game\SFML 2.1 game\main.obj SFML 2.1 game
Error 5 error LNK2019: unresolved external symbol "public: bool __thiscall sf::Window::pollEvent(class sf::Event &)" (?pollEvent@Window@sf@@QAE_NAAVEvent@2@@Z) referenced in function _main c:\Users\Admin\documents\visual studio 2012\Projects\SFML 2.1 game\SFML 2.1 game\main.obj SFML 2.1 game
Error 11 error LNK2019: unresolved external symbol "public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (??1RenderWindow@sf@@UAE@XZ) referenced in function _main c:\Users\Admin\documents\visual studio 2012\Projects\SFML 2.1 game\SFML 2.1 game\main.obj SFML 2.1 game
Error 12 error LNK2019: unresolved external symbol "public: virtual __thiscall sf::Shape::~Shape(void)" (??1Shape@sf@@UAE@XZ) referenced in function "public: virtual __thiscall sf::CircleShape::~CircleShape(void)" (??1CircleShape@sf@@UAE@XZ) c:\Users\Admin\documents\visual studio 2012\Projects\SFML 2.1 game\SFML 2.1 game\main.obj SFML 2.1 game
Error 8 error LNK2019: unresolved external symbol "public: void __thiscall sf::RenderTarget::clear(class sf::Color const &)" (?clear@RenderTarget@sf@@QAEXABVColor@2@@Z) referenced in function _main c:\Users\Admin\documents\visual studio 2012\Projects\SFML 2.1 game\SFML 2.1 game\main.obj SFML 2.1 game
Error 9 error LNK2019: unresolved external symbol "public: void __thiscall sf::RenderTarget::draw(class sf::Drawable const &,class sf::RenderStates const &)" (?draw@RenderTarget@sf@@QAEXABVDrawable@2@ABVRenderStates@2@@Z) referenced in function _main c:\Users\Admin\documents\visual studio 2012\Projects\SFML 2.1 game\SFML 2.1 game\main.obj SFML 2.1 game
Error 13 error LNK2019: unresolved external symbol "public: void __thiscall sf::Shape::setFillColor(class sf::Color const &)" (?setFillColor@Shape@sf@@QAEXABVColor@2@@Z) referenced in function _main c:\Users\Admin\documents\visual studio 2012\Projects\SFML 2.1 game\SFML 2.1 game\main.obj SFML 2.1 game
Error 3 error LNK2019: unresolved external symbol "public: void __thiscall sf::Window::close(void)" (?close@Window@sf@@QAEXXZ) referenced in function _main c:\Users\Admin\documents\visual studio 2012\Projects\SFML 2.1 game\SFML 2.1 game\main.obj SFML 2.1 game
Error 6 error LNK2019: unresolved external symbol "public: void __thiscall sf::Window::display(void)" (?display@Window@sf@@QAEXXZ) referenced in function _main c:\Users\Admin\documents\visual studio 2012\Projects\SFML 2.1 game\SFML 2.1 game\main.obj SFML 2.1 game
Error 17 error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup c:\Users\Admin\documents\visual studio 2012\Projects\SFML 2.1 game\SFML 2.1 game\MSVCRTD.lib(crtexew.obj) SFML 2.1 game