Error while compiling Allegro

Asked

Viewed 1,246 times

1

I installed and created the Allegro project following this tutorial.

I have that code:

#include <stdio.h>
#include <stdlib.h>

#include <allegro5/allegro.h>
#include <allegro5/allegro_native_dialog.h>

int main(void)
{
al_init();
al_show_native_message_box( /* fill in params */ );

return 0;
}

and that mistake:

[Error] allegro5/allegro.h: No such file or directory

How to correct ??

  • The Allegro you installed was version 4.2, and the code you’re trying to compile is for Allegro 5, and yet, it doesn’t compile because it contains errors. Try compiling this code: http://pastebin.com/3gRrafSU If you can’t, try installing Allegro in Codeblocks as in the following video: https://www.youtube.com/watch?v=aOfmSpU71QA

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.