SFML community forums

Help => General => Topic started by: AndrewB on August 06, 2012, 07:33:03 am

Title: [SOLVED] Linker problems setting up SFML2 rc with VC++ 2008
Post by: AndrewB 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).
(http://i.imgur.com/FhX3h.png)

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.

(http://i.imgur.com/ysWzm.png)
(http://i.imgur.com/zKm3U.png)
(http://i.imgur.com/XNYqs.png)
(http://i.imgur.com/IVvwr.png)
(http://i.imgur.com/CoLQy.png)

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.
Title: Update
Post by: AndrewB 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.

(http://i.imgur.com/VZwjq.png)
Title: Re: Linker problems setting up SFML2 rc with VC++ 2008
Post by: Laurent on August 06, 2012, 08:02:39 am
What files does the C:\SFML-2.0-RC\lib folder contain?
Title: Re: Linker problems setting up SFML2 rc with VC++ 2008
Post by: AndrewB 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.
(http://i.imgur.com/HgLDQ.png)
Title: Re: Linker problems setting up SFML2 rc with VC++ 2008
Post by: Laurent 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
Title: Re: Linker problems setting up SFML2 rc with VC++ 2008
Post by: AndrewB 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.

(http://i.imgur.com/SGm4v.png)