|
Problem with SDL |
Scooter
Member #16,799
January 2018
|
Hi all: I don't understand why because it came from a SDL tutorial. I am using Ubuntu Linux. If someone could take a look at it I would appreciate it. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Run it through GDB and get a `backtrace' of the seg fault. Your video ran fine. When did it start to have problems? ALSO My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Scooter
Member #16,799
January 2018
|
Edgar: BTW, the debugger in my codeblocks version is GDB. Thanks |
Edgar Reynaldo
Major Reynaldo
May 2007
|
It linked with SDL2 because it was there and it was first in the order. Order matters with the linker. You should learn how to use gdb from the command line. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Scooter
Member #16,799
January 2018
|
Edgar: Thanks for the info! |
Chris Katko
Member #1,881
January 2002
|
Scooter said: The program in question uses SDL, NOT SDL2. This problem has caused me SO. MANY. PROBLEMS. for their stupid naming scheme / include directory path when trying to compile SDL projects from github. It's like a living endorsement of snap/docker/whatever packages that completely encapsulate dependencies into the executable / virtual machine. -----sig: |
|