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

Author Topic: [SOLVED] Linker problems setting up SFML2 rc with VC++ 2008  (Read 1901 times)

0 Members and 1 Guest are viewing this topic.

AndrewB

  • Newbie
  • *
  • Posts: 33
    • View Profile
[SOLVED] Linker problems setting up SFML2 rc with VC++ 2008
« on: August 06, 2012, 07:33:03 am »
Hello everyone,

I have just tried to setup the release candidate of SFML 2.0 with VC++ 2008 on my windows 7 machine and I've encountered a linker problem.

This is the output from the test program that is shown in the setup tutorial found here (http://www.sfml-dev.org/tutorials/2.0/start-vc.php).


Here are some screenshots showing my project properties and some details of my file system showing that the files do exist in C:\SFML-2.0-rc. I tried to follow the setup tutorial to the letter.







As you can see the files do exist on my hard drive and I have followed all of the instructions in the setup tutorial.

Is there anything that I missed?

Thanks for any help you can provide.
« Last Edit: August 06, 2012, 09:01:37 am by AndrewB »

AndrewB

  • Newbie
  • *
  • Posts: 33
    • View Profile
Update
« Reply #1 on: August 06, 2012, 07:40:28 am »
I have just tried linking to the static libraries and the linker still cannot find the files.


Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Linker problems setting up SFML2 rc with VC++ 2008
« Reply #2 on: August 06, 2012, 08:02:39 am »
What files does the C:\SFML-2.0-RC\lib folder contain?
Laurent Gomila - SFML developer

AndrewB

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Linker problems setting up SFML2 rc with VC++ 2008
« Reply #3 on: August 06, 2012, 08:32:56 am »
Thanks for the quick reply Laurent!

These are the files in my SFML-2.0-rc/lib directory.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Linker problems setting up SFML2 rc with VC++ 2008
« Reply #4 on: August 06, 2012, 08:49:25 am »
Oh, I found the problem. Look at the linker error: it tries to find a single file named "sfml-graphics-d.lib;sfml-window-d.lib;sfml-system-d.lib". So the conclusion is that ";" should not be used as a separator (I think you must use spaces -- use the "..." button to edit the list if you're not sure) ;)

So it seems that the tutorial needs to be fixed ;D
Laurent Gomila - SFML developer

AndrewB

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Linker problems setting up SFML2 rc with VC++ 2008
« Reply #5 on: August 06, 2012, 08:57:33 am »
So the conclusion is that ";" should not be used as a separator (I think you must use spaces -- use the "..." button to edit the list if you're not sure)

That fixed the error! Thanks Laurent. I guess I should have tried to use the [...] button to add them in the first place.


 

anything