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

Author Topic: EXE stops working after compile  (Read 1649 times)

0 Members and 1 Guest are viewing this topic.

Imadori

  • Newbie
  • *
  • Posts: 3
    • View Profile
EXE stops working after compile
« on: April 10, 2018, 06:59:16 am »
Tried 2 types of the latest version of CodeBlocks (17.12), MingW and non-MingW, with different combination of SFML 4.9.2 TDM 32bit, and 6.1.0 Mingw 32bit. Also tried an earlier version both of SFML and Codeblocks, but non of them worked properly.

it compiles but .exe stops working without opening a window.
I never had this problem 2 years ago. But now that I re-installed it.

I just copy and pasted the example code in the tutorial, the window with green circle.
when I type "gcc -v" or "gcc --version" in CMD is says "it's not recognized".
running on Windows 7

Been searching for 2 hours but no luck.

EDIT: Oh and after doing this over 20 times already i'm pretty sure I linked everything perfectly. So there's no problem there
« Last Edit: April 10, 2018, 07:05:40 am by Imadori »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: EXE stops working after compile
« Reply #1 on: April 10, 2018, 07:37:14 am »
Are you handling events as shown in the tutorials?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Imadori

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: EXE stops working after compile
« Reply #2 on: April 10, 2018, 08:05:44 am »
Yes. I re-installed SFML many times with this setting and using this method (in Windows 7) before and it always worked, so I was wondering what might be the changes that causes this.

Imadori

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: EXE stops working after compile
« Reply #3 on: April 20, 2018, 05:21:55 am »
I'm telling you. Typed it, copy&pasted it, typed again. It doesn't work.