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

Author Topic: SFML2 Basic Tutorial Code Crashing  (Read 1272 times)

0 Members and 1 Guest are viewing this topic.

jtedit

  • Newbie
  • *
  • Posts: 1
    • View Profile
SFML2 Basic Tutorial Code Crashing
« on: May 17, 2013, 04:55:51 pm »
Hi all,

I can't get to seem sfml2 working, my program crashes when ran (using just the tutorial code here: http://www.sfml-dev.org/tutorials/2.0/window-window.php).

I am using code::blocks with the GNU GCC Compiler.

I have heard that sometimes the pre-built libaries don't work with it, so I downloaded the SFML-Master and followed the tutorial to build it with C-Make, this process succeeded and produced the .dll and .a files.

My program compiles fine but when running crashes as soon as an sfml function is called. I verified this by adding a "cin.get()" before the tutorial code and it only crashes after pressing enter.

It always returns the same code "-1073741819 (0xC0000005)" if that is any help.

Any idea why this would happen and how to fix it?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
Re: SFML2 Basic Tutorial Code Crashing
« Reply #1 on: May 20, 2013, 04:21:40 pm »
Run it through the debugger and find out where things go boom. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/