1
Général / problème de compilation
« le: Juin 04, 2019, 10:32:44 pm »
BONJOUR, je suis nouveau sur sfml, j'utilise visual studio 2013, j'ai installé sfml comme montré dans le tuto mais au moment de la compilation du sfml works! j'ai des erreurs :
Error 1 error LNK2001: unresolved external symbol "public: void __thiscall sf::Shape::setFillColor(class sf::Color const &)" (?setFillColor@Shape@sf@@QAEXABVColor@2@@Z) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 2 error LNK2001: unresolved external symbol "public: virtual __thiscall sf::Shape::~Shape(void)" (??1Shape@sf@@UAE@XZ) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 3 error LNK2001: unresolved external symbol "public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (??1RenderWindow@sf@@UAE@XZ) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 4 error LNK2001: 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) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 5 error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::Green" (?Green@Color@sf@@2V12@B) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 6 error LNK2001: unresolved external symbol "public: void __thiscall sf::Window::display(void)" (?display@Window@sf@@QAEXXZ) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 7 error LNK2001: unresolved external symbol "public: bool __thiscall sf::Window::pollEvent(class sf::Event &)" (?pollEvent@Window@sf@@QAE_NAAVEvent@2@@Z) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 8 error LNK2001: unresolved external symbol "public: bool __thiscall sf::Window::isOpen(void)const " (?isOpen@Window@sf@@QBE_NXZ) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 9 error LNK2001: unresolved external symbol "public: void __thiscall sf::Window::close(void)" (?close@Window@sf@@QAEXXZ) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 10 error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 11 error LNK2001: unresolved external symbol "public: __thiscall sf::String::String(char const *,class std::locale const &)" (??0String@sf@@QAE@PBDABVlocale@std@@@Z) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 12 error LNK2001: unresolved external symbol "public: __thiscall sf::CircleShape::CircleShape(float,unsigned int)" (??0CircleShape@sf@@QAE@MI@Z) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 13 error LNK2001: unresolved external symbol "public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (??0VideoMode@sf@@QAE@III@Z) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 14 error LNK2001: 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) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 15 error LNK2001: unresolved external symbol "public: void __thiscall sf::RenderTarget::clear(class sf::Color const &)" (?clear@RenderTarget@sf@@QAEXABVColor@2@@Z) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 16 error LNK2001: unresolved external symbol "public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (??0Color@sf@@QAE@EEEE@Z) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 17 error LNK2001: unresolved external symbol _WinMain@16 C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\MSVCRT.lib(crtexew.obj) game
Error 18 error LNK1120: 17 unresolved externals C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\Release\game.exe game
que dois je faire pour régler cela ?
Error 1 error LNK2001: unresolved external symbol "public: void __thiscall sf::Shape::setFillColor(class sf::Color const &)" (?setFillColor@Shape@sf@@QAEXABVColor@2@@Z) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 2 error LNK2001: unresolved external symbol "public: virtual __thiscall sf::Shape::~Shape(void)" (??1Shape@sf@@UAE@XZ) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 3 error LNK2001: unresolved external symbol "public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (??1RenderWindow@sf@@UAE@XZ) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 4 error LNK2001: 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) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 5 error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::Green" (?Green@Color@sf@@2V12@B) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 6 error LNK2001: unresolved external symbol "public: void __thiscall sf::Window::display(void)" (?display@Window@sf@@QAEXXZ) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 7 error LNK2001: unresolved external symbol "public: bool __thiscall sf::Window::pollEvent(class sf::Event &)" (?pollEvent@Window@sf@@QAE_NAAVEvent@2@@Z) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 8 error LNK2001: unresolved external symbol "public: bool __thiscall sf::Window::isOpen(void)const " (?isOpen@Window@sf@@QBE_NXZ) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 9 error LNK2001: unresolved external symbol "public: void __thiscall sf::Window::close(void)" (?close@Window@sf@@QAEXXZ) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 10 error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 11 error LNK2001: unresolved external symbol "public: __thiscall sf::String::String(char const *,class std::locale const &)" (??0String@sf@@QAE@PBDABVlocale@std@@@Z) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 12 error LNK2001: unresolved external symbol "public: __thiscall sf::CircleShape::CircleShape(float,unsigned int)" (??0CircleShape@sf@@QAE@MI@Z) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 13 error LNK2001: unresolved external symbol "public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (??0VideoMode@sf@@QAE@III@Z) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 14 error LNK2001: 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) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 15 error LNK2001: unresolved external symbol "public: void __thiscall sf::RenderTarget::clear(class sf::Color const &)" (?clear@RenderTarget@sf@@QAEXABVColor@2@@Z) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 16 error LNK2001: unresolved external symbol "public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (??0Color@sf@@QAE@EEEE@Z) C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\main.obj game
Error 17 error LNK2001: unresolved external symbol _WinMain@16 C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\game\MSVCRT.lib(crtexew.obj) game
Error 18 error LNK1120: 17 unresolved externals C:\Users\POLYDOR\Music\documents\visual studio 2013\Projects\game\Release\game.exe game
que dois je faire pour régler cela ?