Code: Select all
var display = al_create_display(800, 600)
if display = NULL then
print "al_create_display() failed"
var events = al_create_event_queue()
if events = NULL then
print "failed to create event_queue"
Looks simple, right? But whenever I run this, it just says "Segmentation fault".
If I remove the parts relating to display, it works. Same if I drop the event queue parts. But if I keep both of them, it responds with a segmentation fault. Does anyone have any idea of what's going on? It's the same even when I just copy the example from here: https://github.com/freebasic/fbc/blob/m ... /hello.bas. Thanks in advance.