SFML community forums
Help => Window => Topic started by: Lith on September 01, 2010, 02:53:02 pm
-
EDIT:
I solved the problem by removing the semicollon from the linker input settings.
So i guess that you only use the semicollon if your going to use more than 1 lib file.
I am using Windows 7 and Visual C++ 2008, and i keep getting this linker error when i try to compile this program:
#include <SFML/Window.hpp>
using namespace sf;
int main()
{
Window MainWindow(VideoMode(640,480,32), "SFML Window Test"); //create the window
bool quit = false;
while(quit == false)
{
//Display the window
MainWindow.Display();
}
return 0;
}
This is the error that i get when i build:
LINK : fatal error LNK1104: cannot open file 'sfml-window-d.lib;
It says sfml-window.lib for release
I am sure i pointed VS to the right folder for the libs:
C:\Users\*****\Documents\Visual Studio 2008\dev librarys\sfml\SFML-1.6\lib
I have also cheched that the files are actully in the folder.
Please can you help me.
EDIT:
I have uploaded images of my configurations:
(http://img576.imageshack.us/img576/3120/dirinclude.png) (http://img576.imageshack.us/i/dirinclude.png/)
(http://img828.imageshack.us/img828/2161/dirlib.png) (http://img828.imageshack.us/i/dirlib.png/)
(http://img64.imageshack.us/img64/3500/libdebug.png) (http://img64.imageshack.us/i/libdebug.png/)
(http://img251.imageshack.us/img251/8394/librelease.png) (http://img251.imageshack.us/i/librelease.png/)
(http://img148.imageshack.us/img148/154/macro.png) (http://img148.imageshack.us/i/macro.png/)
-
Where, in your project settings, did you put the ...\SFML-1.6\lib path?
-
Thanks for the reply.
I went to:
Tools->Options->Projects And Solutions->VC++ Directories->Library files.
Also, i did include the SFML_DYNAMIC preprocessor thing
EDIT:
I uploaded some screenshots, look in the main post