Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

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.


Messages - SWB

Pages: [1]
1
General / Re: LNK2001
« on: March 12, 2015, 10:03:41 am »
Thanks
I thought i had defined it in my release configuration but i had only defined it in my debug one

2
General / Re: LNK2001
« on: March 12, 2015, 07:28:31 am »

3
General / [SOLVED]LNK2001
« on: March 12, 2015, 07:07:33 am »
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.

Pages: [1]
anything