hola!
puede que no no este instalada la libreria allegro.
("allegro.h: No such file or directory")
si mal no recuerdo, allegro para devc++ es un archivo
exe autoinstalable.
si ya lo has instalado, entonces asegurate las
cabeceras de allegro esten en include de devc++.
--- lynke <lynke@...> escribió: >
Hola que tal a todos, me surgen
> errores en la compilación de ejemplos con Allegro en
> Dev-C++, luego de haber seguido todos los pasos
> del tutorial "Instalación En Windows Utilizando
> DEV-C++" de
> http://gda.utp.edu.co/instalacion_devcpp.html, como
> por ejemplo
> con el siguiente código:
>
> #include <allegro.h>
> #include <conio.h>
>
> main()
> {
> allegro_init();
> if(set_gfx_mode(GFX_SAFE,320,320,0,0)!=0) {
> set_gfx_mode(GFX_TEXT,0,0,0,0);
> allegro_message("Incapaz de entrar a modo gr
> fico\n%s\n",allegro_error);
> return 1;
> }
>
> line(screen,20,10,310,175,palette_color[15]);
> getch();
> }
>
> END_OF_MAIN();
>
> REGISTRO DE COMPILACIÓN:
>
> Compilador: Default compiler
> Ejecutando gcc.exe...
> gcc.exe "E:\VöR@X\VideoJuegos\Code\Allegro\ipj01.c"
> -o "E:\VöR@X\VideoJuegos\Code\Allegro\ipj01.exe"
> -lalleg -I"C:\devcpp\include" -L"C:\devcpp\lib"
> E:/VöR@X/VideoJuegos/Code/Allegro/ipj01.c:5:21:
> allegro.h: No such file or directory
> E:/VöR@X/VideoJuegos/Code/Allegro/ipj01.c: In
> function `main':
> E:/VöR@X/VideoJuegos/Code/Allegro/ipj01.c:11:
> `GFX_SAFE' undeclared (first use in this function)
> E:/VöR@X/VideoJuegos/Code/Allegro/ipj01.c:11: (Each
> undeclared identifier is reported only once
> E:/VöR@X/VideoJuegos/Code/Allegro/ipj01.c:11: for
> each function it appears in.)
> E:/VöR@X/VideoJuegos/Code/Allegro/ipj01.c:12:
> `GFX_TEXT' undeclared (first use in this function)
> E:/VöR@X/VideoJuegos/Code/Allegro/ipj01.c:13:
> `allegro_error' undeclared (first use in this
> function)
> E:/VöR@X/VideoJuegos/Code/Allegro/ipj01.c:17:
> `screen' undeclared (first use in this function)
> E:/VöR@X/VideoJuegos/Code/Allegro/ipj01.c:17:
> `palette_color' undeclared (first use in this
> function)
>
> E:/VöR@X/VideoJuegos/Code/Allegro/ipj01.c: At top
> level:
> E:/VöR@X/VideoJuegos/Code/Allegro/ipj01.c:21:
> warning: data definition has no type or storage
> class
>
> Ejecución Terminada
>
> TOTAL DE ERRORES: 9
>
> En general, en casi todos los ejemplos que he
> compilado me aparecen estos errores.
> Por favor, que alguien me de una solución o me diga
> donde puedo encontrarla.
>
> SALUDOS Y GRACIAS
>
> EMILIANO DE MENDOZA, ARGENTINA
> TIERRA DEL SOL, EL BUEN VINO... Y BUENAS MUJERES
>
_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com