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

Author Topic: SFML Compile Error (C++ and Code::Blocks)  (Read 1646 times)

0 Members and 1 Guest are viewing this topic.

nullchase

  • Newbie
  • *
  • Posts: 3
    • View Profile
SFML Compile Error (C++ and Code::Blocks)
« on: August 03, 2013, 08:21:03 pm »
Hey everyone, just wondering if I could have a little help with this, I have installed SFML to codeblock with MinGW (DW2 version) and for some reason when I try to compile I get this error (picture attached in the "Build messages" at the bottom of the screen), it worked once and I changed nothing apart from the window title, then after that the whole thing has thrown a fit on me, anyone suggest what I need to do to fix this?

Many Thanks
-Chase


Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: SFML Compile Error (C++ and Code::Blocks)
« Reply #1 on: August 03, 2013, 08:44:52 pm »
There's no version number (-2) in the libraries name. This is the kind of information you can find in the tutorial, you know ;)
Laurent Gomila - SFML developer

nullchase

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: SFML Compile Error (C++ and Code::Blocks)
« Reply #2 on: August 03, 2013, 08:47:22 pm »
Oh right thanks :P just in my lbin folder the files are named such like "sfml-graphics-2.dll", do I just put "sfml-graphics.dll" instead?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: SFML Compile Error (C++ and Code::Blocks)
« Reply #3 on: August 03, 2013, 08:49:04 pm »
The names you put in the linker options are not the .dll, but the .a files (in /lib). And these files have no -2 in their name.

Again, please read the tutorial instead of guessing things.
Laurent Gomila - SFML developer

nullchase

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: SFML Compile Error (C++ and Code::Blocks)
« Reply #4 on: August 03, 2013, 08:50:52 pm »
Thanks man! I got it working, I actually thought I had read the tutorial well and followed it exactly, although I had a little bit of a brain fart it appears, I read it again and I've realised what you mean now, thanks a lot!!

rgrant1993

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: SFML Compile Error (C++ and Code::Blocks)
« Reply #5 on: August 03, 2013, 09:01:31 pm »
Check your linking