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

Author Topic: Trouble setting up SFML with Code::Blocks  (Read 2397 times)

0 Members and 1 Guest are viewing this topic.

Bigwaddobeans

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Trouble setting up SFML with Code::Blocks
« on: October 30, 2013, 05:09:08 am »
I setup SFML for Code::Blocks and pasted all of the necessary .dll files to the folder with the executable, but whenever I try and run the program, an error window saying "filename.exe has stopped working. Windows is checking for a solution to the problem." As far as I know, the code is fine (I copied and pasted it from the SFML website). Any help would be greatly appreciated.

guitarmatt99

  • Newbie
  • *
  • Posts: 19
    • View Profile
Trouble setting up SFML with Code::Blocks
« Reply #1 on: October 30, 2013, 09:21:22 am »
Have you tried searching on the forums? I've seen many posts like this and I've even posted one myself with a similar problem.

Which version of Code::Blocks are you using? And which SFML did you download?
« Last Edit: October 30, 2013, 09:24:23 am by guitarmatt99 »

Bigwaddobeans

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Trouble setting up SFML with Code::Blocks
« Reply #2 on: October 31, 2013, 03:02:06 am »
I used SFML 2.1 and Code::Blocks 12.11

The Hatchet

  • Full Member
  • ***
  • Posts: 135
    • View Profile
    • Email
Re: Trouble setting up SFML with Code::Blocks
« Reply #3 on: October 31, 2013, 03:56:14 am »
http://www.sfml-dev.org/tutorials/2.1/start-cb.php

Read EVERYTHING and by everything I mean EVERYTHING on the page and it should work just fine.  I've setup SFML 2.1 and CB 12.11 just fine multiple times on multiple machines.  as long as you READ AND FOLLOW EVERYTHING AND EVERY STEP on the page you should be fine.

guitarmatt99

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Trouble setting up SFML with Code::Blocks
« Reply #4 on: October 31, 2013, 11:59:09 am »
I used SFML 2.1 and Code::Blocks 12.11

Did you download it with the MinGW compiler? If so you need the 'GCC 4.7 TDM (SJLJ)' version of SFML. If not, you need the 'GCC 4.7 MinGW (DW2)' version. This is the problem I had.