Code: Select all
#include "allegro5/allegro.bi"
al_init()
var display = al_create_display(800, 600)
if display = NULL then
print "al_create_display() failed"
end 1
end if
var events = al_create_event_queue()
if events = NULL then
print "failed to create event_queue"
end 1
end if
al_destroy_event_queue(events)
al_destroy_display(display)
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.