我正在尝试使用 ALLEGRO_EVENT_QUEUE 在 Allegro 中创建事件队列,但尝试读取位置 0x0000 时出现侵权错误。这是错误消息(它是西班牙语):Excepción no controlada en 0x7BE755AF (allegro-5.0.10-monolith-md.dll) en Geometry World.exe: 0xC0000005: Infraccón de acceso al leer la ubicación 0x00000000。
这些是我的代码中包含的内容
#include <allegro5/allegro.h>
#include <allegro5/allegro_ttf.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_native_dialog.h>
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_image.h>
#include <allegro5/allegro_audio.h>
#include <allegro5/allegro_acodec.h>
这是出现错误的行中的代码。
int main(int argc, char** argv) {ALLEGRO_EVENT_QUEUE* colaEventos = al_create_event_queue();}
非常感谢任何帮助