i compiled it in slackware => works like a charm
i compiled it in windows => works like a charm
then i installed sdl2 libs in ubuntu, tried running the game, no go, tried recompiling in ubuntu, still no go
An unhandled exception occurred at $00007FD811367634:
EDivByZero: Division by zero
$00007FD811367634
of course, there is no divison by zero in my code, must be some lib or something
backtrace from gdb says
Program received signal SIGFPE, Arithmetic exception.
0x00007ffff7b7f634 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
(gdb) bt
#0 0x00007ffff7b7f634 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
#1 0x00007ffff7b8021a in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
#2 0x00007ffff7b837c6 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
#3 0x00007ffff7b75d09 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
#4 0x00007ffff7add397 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
#5 0x000000000040203a in ?? ()
#6 0x00007fffffff0030 in ?? ()
#7 0x000000000041c159 in ?? ()
#8 0x00007fffffffdd30 in ?? ()
#9 0x0000000000402689 in ?? ()
#10 0x00007fffffffdd40 in ?? ()
#11 0x0000000000405a2e in main ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
any ideas on what to do?