Hullo
When I compile the following code with the static release sfml libraries that have been correctly linked as far as I can tell.
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <stdio.h>
#include <conio.h>
int main(){
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");
printf("Press any key continue . . . \n");
_getch();
return 0;
}
I get the following errors.
Error 1 error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (__imp_??1RenderWindow@sf@@UAE@XZ) E:\Visual Studio 2013\Projects\Sprite_Collision\Sprite_Collision\main.obj Sprite_Collision
Error 4 error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (__imp_??0VideoMode@sf@@QAE@III@Z) E:\Visual Studio 2013\Projects\Sprite_Collision\Sprite_Collision\main.obj Sprite_Collision
Error 3 error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::String::String(char const *,class std::locale const &)" (__imp_??0String@sf@@QAE@PBDABVlocale@std@@@Z) E:\Visual Studio 2013\Projects\Sprite_Collision\Sprite_Collision\main.obj Sprite_Collision
Error 5 error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::String::~String(void)" (__imp_??1String@sf@@QAE@XZ) E:\Visual Studio 2013\Projects\Sprite_Collision\Sprite_Collision\main.obj Sprite_Collision
Error 2 error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::RenderWindow::RenderWindow(class sf::VideoMode,class sf::String const &,unsigned int,struct sf::ContextSettings const &)" (__imp_??0RenderWindow@sf@@QAE@VVideoMode@1@ABVString@1@IABUContextSettings@1@@Z) E:\Visual Studio 2013\Projects\Sprite_Collision\Sprite_Collision\main.obj Sprite_Collision
Error 6 error LNK1120: 5 unresolved externals E:\Visual Studio 2013\Projects\Sprite_Collision\Release\Sprite_Collision.exe Sprite_Collision
I'm compiling on Microsoft Visual Studio 2013 on Windows 64 but using 32 bit libraries.