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

Author Topic: VC++ 2008 Linking Error[Solved]  (Read 2044 times)

0 Members and 1 Guest are viewing this topic.

Lith

  • Newbie
  • *
  • Posts: 5
    • View Profile
VC++ 2008 Linking Error[Solved]
« 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:
Code: [Select]

#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:
Code: [Select]

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:
Code: [Select]

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:









Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
VC++ 2008 Linking Error[Solved]
« Reply #1 on: September 01, 2010, 03:03:22 pm »
Where, in your project settings, did you put the ...\SFML-1.6\lib path?
Laurent Gomila - SFML developer

Lith

  • Newbie
  • *
  • Posts: 5
    • View Profile
VC++ 2008 Linking Error[Solved]
« Reply #2 on: September 01, 2010, 03:07:31 pm »
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