|
Problem with GDB on Devcpp |
Sophat Pheng
Member #5,774
April 2005
|
Hello, int main() { int i; // do some stuff i = 3; i+= 5; return 0; } but isn't working with my allegro program. I got a segmentation fault.
I have enable "Generate debugging information" Help please. |
ReyBrujo
Moderator
January 2001
|
Code looks fine. Are you debugging step by step and it throws the exception, or it throws when trying to run it with F5? -- |
Sophat Pheng
Member #5,774
April 2005
|
When i'm not debugging, it runs fines but it throws the error when I'm doing step-by-step (shift+F4) or simply debut (F8) Im using Devcpp 4.9.9.2 (beta 5 release 9) could that be the problem ? EDIT: |
BAF
Member #2,981
December 2002
|
Well... showing us the full source and telling us what line it tells you the segfault is at would help. |
Sophat Pheng
Member #5,774
April 2005
|
Well the code I posted is actually the full source. Also, wherever I put my breakpoint, a segmentation fault happens. I'm running on XP. I fount out in other threads that I'm not the only one having this problem and maybe GDB is at fault since it wasn't made to run on windows. Any advices are still appreciated. |
Kitty Cat
Member #2,815
October 2002
|
Yes, GDB in Windows isn't the most stable thing in the world. Seems to be a recurring problem for MinGW users. -- |
GullRaDriel
Member #3,861
September 2003
|
I've never had problem with it under windows ... But I think I got teh fluid ;-p "Code is like shit - it only smells if it is not yours" |
Arthur Kalliokoski
Second in Command
February 2005
|
I see you're not setting GFX_TEXT before calling allegro_message if failing to set a graphic mode. Also, I thought there was an issue about installing keyboard before as well? Can the example programs set GFX_AUTODETECT_WINDOWED 640 480 @ 32bpp? They all watch too much MSNBC... they get ideas. |
|