El caso, que estoy intentando comenzar con allegro.h, he descargado el package y en la carpeta allegro5 hay todos los archivos de allegro(system.h, memory.h, base.h, mouse.h...) pero cuando intento compilar me marca un error en la primera linea (donde tengo #include <allegro.h>, y en el registro del compilador me pone esto.
Compilador: Default compiler
Executant g++.exe...
g++.exe "C:\Documents and Settings\Ramonet\Mis documentos\c++ projects\prova1.cpp" -o "C:\Documents and Settings\Ramonet\Mis documentos\c++ projects\prova1.exe" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
In file included from C:\Documents and Settings\Ramonet\Mis documentos\c++ projects\prova1.cpp:1:
C:/Dev-Cpp/include/allegro.h:26:27: allegro5/base.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:28:29: allegro5/system.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:29:29: allegro5/memory.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:30:28: allegro5/debug.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:31:28: allegro5/error.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:33:27: allegro5/utf8.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:35:29: allegro5/altime.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:37:29: allegro5/events.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:39:28: allegro5/mouse.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:40:28: allegro5/timer.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:41:31: allegro5/keyboard.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:42:31: allegro5/joystick.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:44:30: allegro5/threads.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:46:30: allegro5/display.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:47:38: allegro5/transformations.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:48:32: allegro5/bitmap_io.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:49:29: allegro5/bitmap.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:51:26: allegro5/tls.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:53:27: allegro5/file.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:54:29: allegro5/fshook.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:55:27: allegro5/path.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:57:29: allegro5/fmaths.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:59:29: allegro5/config.h: No such file or directory
C:/Dev-Cpp/include/allegro.h:63:34: allegro5/alcompat.h: No such file or directory
C:\Documents and Settings\Ramonet\Mis documentos\c++ projects\prova1.cpp: In function `int main()':
C:\Documents and Settings\Ramonet\Mis documentos\c++ projects\prova1.cpp:4: error: `allegro_init' undeclared (first use this function)
C:\Documents and Settings\Ramonet\Mis documentos\c++ projects\prova1.cpp:4: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:\Documents and Settings\Ramonet\Mis documentos\c++ projects\prova1.cpp:5: error: `install_keyboard' undeclared (first use this function)
C:\Documents and Settings\Ramonet\Mis documentos\c++ projects\prova1.cpp:6: error: `install_timer' undeclared (first use this function)
C:\Documents and Settings\Ramonet\Mis documentos\c++ projects\prova1.cpp:7: error: `install_mouse' undeclared (first use this function)
C:\Documents and Settings\Ramonet\Mis documentos\c++ projects\prova1.cpp:8: error: `set_color_depth' undeclared (first use this function)
C:\Documents and Settings\Ramonet\Mis documentos\c++ projects\prova1.cpp:9: error: `GFX_AUTODETECT' undeclared (first use this function)
C:\Documents and Settings\Ramonet\Mis documentos\c++ projects\prova1.cpp:9: error: `set_gfx_mode' undeclared (first use this function)
C:\Documents and Settings\Ramonet\Mis documentos\c++ projects\prova1.cpp:11: error: `allegro_exit' undeclared (first use this function)
C:\Documents and Settings\Ramonet\Mis documentos\c++ projects\prova1.cpp: At global scope:
C:\Documents and Settings\Ramonet\Mis documentos\c++ projects\prova1.cpp:13: error: expected constructor, destructor, or type conversion at end of input
C:\Documents and Settings\Ramonet\Mis documentos\c++ projects\prova1.cpp:13: error: expected `,' or `;' at end of input
Execució finalitzada
Como si no tuviera los headers de allegro en la carpeta allegro5.
Pero si os fijais si hago un dir si que estan los headers.
C:\Documents and Settings\Ramonet>dir "C:/dev-cpp/allegro/include/allegro5"
El volumen de la unidad C no tiene etiqueta.
El número de serie del volumen es: 3CCE-57DE
Directorio de C:\dev-cpp\allegro\include\allegro5
03/04/2011 14:34 <DIR> .
03/04/2011 14:34 <DIR> ..
03/04/2011 14:34 337 alcompat.h
03/04/2011 14:34 958 alinline.h
03/04/2011 14:34 1.783 allegro.h
03/04/2011 14:34 24 allegro5.h
03/04/2011 14:34 1.547 allegro_direct3d.h
03/04/2011 14:34 846 allegro_iphone.h
03/04/2011 14:34 4.222 allegro_opengl.h
03/04/2011 14:34 972 allegro_windows.h
03/04/2011 14:34 532 altime.h
03/04/2011 14:34 2.993 base.h
03/04/2011 14:34 7.569 bitmap.h
03/04/2011 14:34 1.348 bitmap_io.h
03/04/2011 14:34 340 color.h
03/04/2011 14:34 1.978 config.h
03/04/2011 14:34 2.500 debug.h
03/04/2011 14:34 5.957 display.h
03/04/2011 14:34 958 error.h
03/04/2011 14:34 7.113 events.h
03/04/2011 14:34 3.644 file.h
03/04/2011 14:34 963 fixed.h
03/04/2011 14:34 1.238 fmaths.h
03/04/2011 14:34 5.063 fshook.h
03/04/2011 14:34 <DIR> inline
03/04/2011 14:34 <DIR> internal
03/04/2011 14:34 2.866 joystick.h
03/04/2011 14:34 1.917 keyboard.h
03/04/2011 14:34 5.244 keycodes.h
03/04/2011 14:34 2.280 memory.h
03/04/2011 14:34 4.793 mouse.h
03/04/2011 14:34 <DIR> opengl
03/04/2011 14:34 2.200 path.h
03/04/2011 14:34 <DIR> platform
03/04/2011 14:34 1.299 system.h
03/04/2011 14:34 2.290 threads.h
03/04/2011 14:34 2.005 timer.h
03/04/2011 14:34 1.814 tls.h
03/04/2011 14:34 1.355 transformations.h
03/04/2011 14:34 6.244 utf8.h
34 archivos 87.192 bytes
6 dirs 10.407.088.128 bytes libres
Pues como que no entiendo de donde viene el error...
A ver si alguien se puede imaginar que me pasa...
el codigo que estoy intentando es este:
#include<allegro.h>
int main()
{
allegro_init();
install_keyboard();
install_timer();
install_mouse();
set_color_depth(8);
set_gfx_mode(GFX_AUTODETECT,800,600,0,0);
allegro_exit();
}
END_OF_MAIN()