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

Author Topic: linker problem with SFML and vs 2008  (Read 2303 times)

0 Members and 1 Guest are viewing this topic.

BillH

  • Newbie
  • *
  • Posts: 12
    • View Profile
linker problem with SFML and vs 2008
« on: April 21, 2013, 08:22:48 am »
Hi there. I am just learning SFML and have been working my way through the example tutorials on version 1.6.

I have had no problems up to now but, trying the 'drawing basic shapes' tutorial I keep getting linker errors: e.g. fatal error LNK1104: cannot open file 'sfml-graphics.lib.

I have set up the compiler and linker properties exactly the same as all the previous tutorials yet I keep getting this error with this one. Has anyone got any idea what I might be doing wrong?

Thanks in advance for any help.

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: linker problem with SFML and vs 2008
« Reply #1 on: April 21, 2013, 02:04:22 pm »
If you are using debug mode then you must link to the the SFML lib that was compiled in debug mode, and same for release mode, if you use release mode you then must link to the SFML release mode.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

BillH

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: linker problem with SFML and vs 2008
« Reply #2 on: April 21, 2013, 02:23:31 pm »
Thanks but I already checked that. As I said I have had no problems with the previous tutorials and I have taken the same steps to set this one up. I am obviously missing something and I just can't see what. Sorry to keep asking what are probably silly questions but I am fairly new to SFML.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
AW: linker problem with SFML and vs 2008
« Reply #3 on: April 21, 2013, 02:40:01 pm »
"Can not open" means can't find. Make sure you've set the lib path correctly (see official tutorual).

Besides that you should use SFML 2 and at least VS 2010, VS 2012 would be even better. ;)
« Last Edit: April 21, 2013, 06:06:41 pm by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

BillH

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: linker problem with SFML and vs 2008
« Reply #4 on: April 21, 2013, 06:05:00 pm »

Thanks eXpl0it3r.
I have installed vs 2010 and will try the exercise tutorial on that.

 I looked on the sfml website and it describes version 2 as 'release candidate, which I take to mean as beta (test) version. i am not keen to try this version at the moment as, being new to learning sfml, if any errors do occur I would not know whether the program or myself was the fault.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: linker problem with SFML and vs 2008
« Reply #5 on: April 21, 2013, 06:14:21 pm »
I looked on the sfml website and it describes version 2 as 'release candidate, which I take to mean as beta (test) version. i am not keen to try this version at the moment as, being new to learning sfml, if any errors do occur I would not know whether the program or myself was the fault.
SFML 2.0 has been tagged as such in the Git repository, we're only waiting for the official release packages, but learning v1.6 will only waste your time, since you'll have to relearn everything.
Besides you're missing out on quite a few nice features. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

BillH

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: linker problem with SFML and vs 2008
« Reply #6 on: April 21, 2013, 06:47:04 pm »
eXpl0it3r - Thanks for the info I will give version 2 a try then, with vs2010.
thanks again :)