SFML community forums

Help => General => Topic started by: nullchase on August 03, 2013, 08:21:03 pm

Title: SFML Compile Error (C++ and Code::Blocks)
Post by: nullchase 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

Title: Re: SFML Compile Error (C++ and Code::Blocks)
Post by: Laurent 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 ;)
Title: Re: SFML Compile Error (C++ and Code::Blocks)
Post by: nullchase 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?
Title: Re: SFML Compile Error (C++ and Code::Blocks)
Post by: Laurent 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.
Title: Re: SFML Compile Error (C++ and Code::Blocks)
Post by: nullchase 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!!
Title: Re: SFML Compile Error (C++ and Code::Blocks)
Post by: rgrant1993 on August 03, 2013, 09:01:31 pm
Check your linking