Hello
do you know whats wrong with this code?
#include <stdio.h>
#include <allegro5\allegro5.h>
#include <allegro5\allegro_primitives.h>
#include <allegro5\allegro_image.h>
int main()
{
al_init();
FILE* pFile;
return 0;
}
If I compile it, it fails and output is:
main.c
1>c:\users\beda\documents\visual studio 2010\projects\c allegro\c allegro\main.c(9): error C2143: syntax error : missing ';' before 'type'
But if I run it as C++ code (source code is called main.cpp) it runs without problems. And I am using VC++ 2010.
Thanks for help.