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

Author Topic: Problems setting up SFML with Code Blocks  (Read 1490 times)

0 Members and 1 Guest are viewing this topic.

jerdnA

  • Newbie
  • *
  • Posts: 3
    • View Profile
Problems setting up SFML with Code Blocks
« on: August 03, 2015, 04:50:47 pm »
Hello! I have been having trouble setting up SFML with Code Blocks. I initially followed the tutorial on their web page, but that didn't work, so I found this thread:
http://en.sfml-dev.org/forums/index.php?topic=17956.msg128987#msg128987
So I set everything exactly as the solution in that thread said (minus the glew).

It helped with the previous errors, but now I'm getting a " undefined reference to '__chkstk_ms'" one.
(click to show/hide)

I have tried to find a solution to this, but the only thing I was able to find was this:
http://en.sfml-dev.org/forums/index.php?topic=11306.0
Where the guy downloaded a different version of GCC and Codeblocks.

I have tried downloading a different version of MinGW, like the user in the previous thread, but it solved nothing. I am using SFML 2.3.1 with GCC 4.8.1, Code Blocks 13.12 on a 64bit Windows 7.
Any help is appreciated, thank you.

GraphicsWhale

  • Full Member
  • ***
  • Posts: 131
    • View Profile
Re: Problems setting up SFML with Code Blocks
« Reply #1 on: August 08, 2015, 03:57:20 am »
Make sure your GCC version matches that of the pre-compile binaries (I'm assuming you didn't compile it yourself) that you downloaded.

Not sure where you got your GCC from, but my compiler (which works fine with SFML) I got from here: http://sourceforge.net/projects/mingw-w64/. 4.9.2 is the newest version SFML pre-compiled binaries support, so you can just download 4.9.2 i686 with DW2 exceptions.

Alternatively you could just compile it yourself.

If your error persists (or if you just haven't checked it already, since this is pretty important), it's likely because the linker options mentioned on the post your linked are for the static library. You can add SFML_STATIC to your project's defines in your build options menu, though I believe there are a few other libraries you must statically link along with it (not sure which ones, though). Or you could try to use the non-static libraries (just remove the -s) and put the DLLs from the bin folder into the folder along side your executable.
« Last Edit: August 08, 2015, 03:59:14 am by GraphicsWhale »

 

anything