1
General / Re: LNK2001 problem
« on: August 29, 2018, 10:00:48 pm »Also you configured the project for Win32, so make sure to use 32-bits libraries.
It was this. Thanks a lot !
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Also you configured the project for Win32, so make sure to use 32-bits libraries.
// ConsoleApplication1.cpp : définit le point d'entrée pour l'application console.
//
#include "stdafx.h"
#include <cstdlib>
#include <SFML/Graphics.hpp>
using namespace sf;
int main()
{
RenderWindow window(VideoMode(800, 600, 32), "Patate !");
while (window.isOpen())
{
Event event;
while (window.pollEvent(event))
{
if (event.type == Event::Closed)
window.close();
}
// Remplissage de l'écran (couleur noire par défaut)
window.clear();
// Affichage de la fenêtre à l'écran
window.display();
}
return 0;
}
Erreur LNK2001 symbole externe non résolu "__declspec(dllimport) public: __cdecl sf::RenderWindow::RenderWindow(class sf::VideoMode,class sf::String const &,unsigned int,struct sf::ContextSettings const &)" (__imp_??0RenderWindow@sf@@QEAA@VVideoMode@1@AEBVString@1@IAEBUContextSettings@1@@Z) ConsoleApplication1 C:\Users\Roimi\documents\visual studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.obj 1
Erreur LNK2001 symbole externe non résolu "__declspec(dllimport) public: __cdecl sf::String::String(char const *,class std::locale const &)" (__imp_??0String@sf@@QEAA@PEBDAEBVlocale@std@@@Z) ConsoleApplication1 C:\Users\Roimi\documents\visual studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.obj 1
Erreur LNK2001 symbole externe non résolu "__declspec(dllimport) public: __cdecl sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (__imp_??0VideoMode@sf@@QEAA@III@Z) ConsoleApplication1 C:\Users\Roimi\documents\visual studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.obj 1
Erreur LNK2001 symbole externe non résolu "__declspec(dllimport) public: virtual __cdecl sf::RenderWindow::~RenderWindow(void)" (__imp_??1RenderWindow@sf@@UEAA@XZ) ConsoleApplication1 C:\Users\Roimi\documents\visual studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.obj 1
Erreur LNK2001 symbole externe non résolu "__declspec(dllimport) public: bool __cdecl sf::Window::isOpen(void)const " (__imp_?isOpen@Window@sf@@QEBA_NXZ) ConsoleApplication1 C:\Users\Roimi\documents\visual studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.obj 1
Erreur LNK2001 symbole externe non résolu "__declspec(dllimport) public: bool __cdecl sf::Window::pollEvent(class sf::Event &)" (__imp_?pollEvent@Window@sf@@QEAA_NAEAVEvent@2@@Z) ConsoleApplication1 C:\Users\Roimi\documents\visual studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.obj 1
Erreur LNK2001 symbole externe non résolu "__declspec(dllimport) public: void __cdecl sf::Window::close(void)" (__imp_?close@Window@sf@@QEAAXXZ) ConsoleApplication1 C:\Users\Roimi\documents\visual studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.obj 1
Erreur LNK2001 symbole externe non résolu "__declspec(dllimport) public: void __cdecl sf::RenderTarget::clear(class sf::Color const &)" (__imp_?clear@RenderTarget@sf@@QEAAXAEBVColor@2@@Z) ConsoleApplication1 C:\Users\Roimi\documents\visual studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.obj 1
Erreur LNK2001 symbole externe non résolu "__declspec(dllimport) public: __cdecl sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (__imp_??0Color@sf@@QEAA@EEEE@Z) ConsoleApplication1 C:\Users\Roimi\documents\visual studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.obj 1
Erreur LNK2001 symbole externe non résolu "__declspec(dllimport) public: void __cdecl sf::Window::display(void)" (__imp_?display@Window@sf@@QEAAXXZ) ConsoleApplication1 C:\Users\Roimi\documents\visual studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.obj 1
Erreur LNK2001 symbole externe non résolu "__declspec(dllimport) public: __cdecl sf::String::~String(void)" (__imp_??1String@sf@@QEAA@XZ) ConsoleApplication1 C:\Users\Roimi\documents\visual studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.obj 1
Erreur LNK1120 11 externes non résolus ConsoleApplication1 C:\Users\Roimi\documents\visual studio 2015\Projects\ConsoleApplication1\x64\Release\ConsoleApplication1.exe 1