Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » HELP NEEDED

This thread is locked; no one can reply to it. rss feed Print
HELP NEEDED
sndsabin
Member #15,575
April 2014

I am novice in Coding with Allegro.I installed Allegro 5 on Visual Studio by copying all bin,include,lib files on compiler VC and copying bin files to system32 and system 64.and linking the library file(allegro-5.0.10-monolith-md-debug.lib) in linker option in Visual Studio.But when i tried to compile the simple code

#include<allegro5\allegro.h>
#include<allegro5\allegro_native_dialog.h>
#include<iostream>
using namespace std;
int main()
{
ALLEGRO_DISPLAY *display;
display=al_create_display(500, 600);
al_show_native_message_box(display, "ALLEGRO MESSAGE", "Message", "Just a Hello Message", NULL,ALLEGRO_MESSAGEBOX_ERROR);
cin.get();
al_destroy_display(display);
return 0;
}

THe error appears stating

Unhandled exception at 0x5E68BD2B (allegro-5.0.10-monolith-md-debug.dll) in project 2.exe: 0xC0000005: Access violation reading location 0x00000000.

HOW TO FIX THIS ERROR ?

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Go to: