This is my run command:
g++ new\ file.cpp -o new\ file -lalleg
This is my code:
#include <allegro.h>
int main(){
allegro_init();
install_keyboard();
set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0);
readkey();
return 0;
}
END_OF_MAIN();
This is my error:
new file.cpp:2:21: error: allegro.h: No such file or directory
new file.cpp: In function ‘int main()’:
new file.cpp:7: error: ‘allegro_init’ was not declared in this scope
new file.cpp:8: error: ‘install_keyboard’ was not declared in this scope
new file.cpp:9: error: ‘GFX_AUTODETECT’ was not declared in this scope
new file.cpp:9: error: ‘set_gfx_mode’ was not declared in this scope
new file.cpp:11: error: ‘readkey’ was not declared in this scope
new file.cpp: At global scope:
new file.cpp:16: error: expected constructor, destructor, or type conversion before ‘;’ token