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

Author Topic: "SFML works!" tutorial not working  (Read 7183 times)

0 Members and 1 Guest are viewing this topic.

R3B3LCAUSE

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: "SFML works!" tutorial not working
« Reply #15 on: December 11, 2013, 04:58:49 am »
Sorry it took so long, I've been busy.

Quote
-------------- Clean: Debug in Test ---------------

Cleaned "Test - Debug"

-------------- Build: Debug in Test ---------------

mingw32-g++.exe -Wextra -Wall  -g    -I"C:\[edit]\SFML-2.1\include" -I"C:\[edit]\SFML-2.1\include"  -c "C:\Program Files (x86)\CodeBlocks\Developement Space\Test\Main.cpp" -o obj\Debug\Main.o
mingw32-g++.exe -L"C:\[edit]\SFML-2.1\lib" -L"C:\[edit]\SFML-2.1\lib"  -o "bin\Debug\Test.exe" obj\Debug\Main.o    -lsfml-graphics-d -lsfml-window-d -lsfml-system-d  -mwindows
Output size is 748.38 KB
Process terminated with status 0 (0 minutes, 2 seconds)
0 errors, 0 warnings

What error are you referring to? The program doesn't open at all, there is no error message. Trying to run it from CodeBlocks gives this
Quote
Process terminated with status -1073741819 (0 minutes, 19 seconds)
and the debugger still shows the same "segmentation fault"

R3B3LCAUSE

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: "SFML works!" tutorial not working
« Reply #16 on: December 14, 2013, 06:45:51 pm »
Bump. Still need help

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: "SFML works!" tutorial not working
« Reply #17 on: December 14, 2013, 07:03:49 pm »
It's not clear. Does the process ever start (check with task manager)?
What if you run it through the debugger?

Have you made a clean rebuild?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

R3B3LCAUSE

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: "SFML works!" tutorial not working
« Reply #18 on: December 14, 2013, 07:19:17 pm »
It does show up in task manager, but it dies quickly.
Ive run it through the debugger, as I said, and it reports a "segmentation fault"

I have rebuilt it several times, every time i make a change

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: "SFML works!" tutorial not working
« Reply #19 on: December 14, 2013, 07:37:51 pm »
Where exactly does it show that error code?

When run through the debugger it should jump to the part where the error originates from?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

R3B3LCAUSE

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: AW: "SFML works!" tutorial not working
« Reply #20 on: December 14, 2013, 09:12:56 pm »
Where exactly does it show that error code?

When run through the debugger it should jump to the part where the error originates from?

I'm sorry, I'm not sure what you mean by "error code"; there is no error message that pops up, the CodeBlocks build log shows the "Process terminated with status -1073741819 (0 minutes, 19 seconds)", and the debugger says that there is a "Segmentation Fault" but I'm not sure what that means.

wintertime

  • Sr. Member
  • ****
  • Posts: 255
    • View Profile
Re: "SFML works!" tutorial not working
« Reply #21 on: December 15, 2013, 12:11:33 am »
That means a fault got triggered inside the CPU, because the program was accessing unaccessible/nonexistent/unallocated memory.
You could look if the debugger shows a source line where it happens or single step the program to find it.