Bug Visual C++

Fermé
TheYoungGeek43 Messages postés 88 Date d'inscription samedi 14 juin 2014 Statut Membre Dernière intervention 1 avril 2017 - 14 juin 2014 à 13:51
TheYoungGeek43 Messages postés 88 Date d'inscription samedi 14 juin 2014 Statut Membre Dernière intervention 1 avril 2017 - 14 juin 2014 à 19:46
Bonjour,

J'ai un soucis quand je crée une application sur Visual C++ 2010 express et que je lance l'application la console me met un message d'erreur

1>main.obj : error LNK2019: symbole externe non résolu "public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (??1RenderWindow@sf@@UAE@XZ) référencé dans la fonction _main
1>main.obj : error LNK2019: symbole externe non résolu "public: void __thiscall sf::Window::display(void)" (?display@Window@sf@@QAEXXZ) référencé dans la fonction _main
1>main.obj : error LNK2019: symbole externe non résolu "public: void __thiscall sf::RenderTarget::draw(class sf::Drawable const &,class sf::RenderStates const &)" (?draw@RenderTarget@sf@@QAEXABVDrawable@2@ABVRenderStates@2@@Z) référencé dans la fonction _main
1>main.obj : error LNK2001: symbole externe non résolu "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)
1>main.obj : error LNK2019: symbole externe non résolu "public: void __thiscall sf::RenderTarget::clear(class sf::Color const &)" (?clear@RenderTarget@sf@@QAEXABVColor@2@@Z) référencé dans la fonction _main
1>main.obj : error LNK2019: symbole externe non résolu "public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (??0Color@sf@@QAE@EEEE@Z) référencé dans la fonction _main
1>main.obj : error LNK2019: symbole externe non résolu "public: void __thiscall sf::Window::close(void)" (?close@Window@sf@@QAEXXZ) référencé dans la fonction _main
1>main.obj : error LNK2019: symbole externe non résolu "public: bool __thiscall sf::Window::pollEvent(class sf::Event &)" (?pollEvent@Window@sf@@QAE_NAAVEvent@2@@Z) référencé dans la fonction _main
1>main.obj : error LNK2019: symbole externe non résolu "public: bool __thiscall sf::Window::isOpen(void)const " (?isOpen@Window@sf@@QBE_NXZ) référencé dans la fonction _main
1>main.obj : error LNK2019: symbole externe non résolu "public: void __thiscall sf::Shape::setFillColor(class sf::Color const &)" (?setFillColor@Shape@sf@@QAEXABVColor@2@@Z) référencé dans la fonction _main
1>main.obj : error LNK2001: symbole externe non résolu "public: static class sf::Color const sf::Color::Green" (?Green@Color@sf@@2V12@B)
1>main.obj : error LNK2019: symbole externe non résolu "public: __thiscall sf::CircleShape::CircleShape(float,unsigned int)" (??0CircleShape@sf@@QAE@MI@Z) référencé dans la fonction _main
1>main.obj : error LNK2019: symbole externe non résolu "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) référencé dans la fonction _main
1>main.obj : error LNK2019: symbole externe non résolu "public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (??0VideoMode@sf@@QAE@III@Z) référencé dans la fonction _main
1>main.obj : error LNK2019: symbole externe non résolu "public: __thiscall sf::String::String(char const *,class std::locale const &)" (??0String@sf@@QAE@PBDABVlocale@std@@@Z) référencé dans la fonction _main
1>main.obj : error LNK2019: symbole externe non résolu "public: virtual __thiscall sf::Shape::~Shape(void)" (??1Shape@sf@@UAE@XZ) référencé dans la fonction "public: virtual __thiscall sf::CircleShape::~CircleShape(void)" (??1CircleShape@sf@@UAE@XZ)
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: symbole externe non résolu _WinMain@16 référencé dans la fonction ___tmainCRTStartup
1>C:\Users\FamilleMazet\documents\visual studio 2010\Projects\Game\Debug\Game.exe : fatal error LNK1120: 17 externes non résolus


Comment je peut faire pour plus avoir se bug

PS1 : ça me le fait même quand je fait un Hello World !

PS2: Si un sujet et pareil c'est qu'il ne ma pas fait réparer se bug ça fait plus de 1semaine que je cherche

A voir également:

2 réponses

ElementW Messages postés 4816 Date d'inscription dimanche 12 juin 2011 Statut Contributeur Dernière intervention 5 octobre 2021 1 225
14 juin 2014 à 14:37
'lut, tu utilises la SFML mais visiblement tu n'as pas lu le tutoriel pour s'en servir avec VC++...
Tu as manqué l'étape de l'ajout des fichiers .lib.
0
TheYoungGeek43 Messages postés 88 Date d'inscription samedi 14 juin 2014 Statut Membre Dernière intervention 1 avril 2017
14 juin 2014 à 16:07
gravgun si je l'ai fait
0
ElementW Messages postés 4816 Date d'inscription dimanche 12 juin 2011 Statut Contributeur Dernière intervention 5 octobre 2021 1 225
14 juin 2014 à 16:51
Tu as bien suivi les instructions précisément? Tu lies la SFML en statique ou en dynamique?
0
TheYoungGeek43 Messages postés 88 Date d'inscription samedi 14 juin 2014 Statut Membre Dernière intervention 1 avril 2017
14 juin 2014 à 19:46
Oui j'ai bien suivis les instruction j'ai lus le tuto que ta envoyer moi c'était le même
0