Hello. I have problem with compiling this piece of code after "install" of Allegro (according to this http://www.daniweb.com/software-development/cpp/threads/248782/help-installing-allegro-for-bloodshed):
#include <conio.h>
#include <stdlib.h>
#include “allegro.h”
int main()
{
allegro_init();
printf("Allegro version = %s\n", allegro_id);
printf("\nPress any key...\n");
getch();
return 0;
}
END_OF_MAIN();
Because I got these errors:
3:10 ..\GetInfo\main.cpp #include expects "FILENAME" or <FILENAME>
..\GetInfo\main.cpp In function `int main()':
6 ..\GetInfo\main.cpp `allegro_init' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in.)
7 ..\GetInfo\main.cpp `allegro_id' undeclared (first use this function)
7 ..\GetInfo\main.cpp `printf' undeclared (first use this function)
7 ..\GetInfo\main.cpp At global scope:
12 ..\GetInfo\main.cpp expected constructor, destructor, or type conversion before ';' token
..\GetInfo\Makefile.win [Build Error] [main.o] Error 1
It is basic piece of code to test if Allegro installation was successful.
I have no idea how to fix this....each advice is appreciated!