Falae, valeu pelas respostas. Sempre quando eu tento incluir a biblioteca windows.h e allegro.h no Mingw da problema. Recebo a seguinte mensagem de erro: In file included from C:/Mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/ allegro.h:38, from teste.c:4: C:/Mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/gfx.h:272: error: conflicting types for 'BITMAP' C:/Mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/wingdi.h:1245: error: previous declaration of 'BITMAP' was here teste.c:26: error: conflicting types for 'WinMain' C:/Mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winbase.h:1048: error: previous declaration of 'WinMain' was here teste.c:26: error: conflicting types for 'WinMain' C:/Mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winbase.h:1048: error: previous declaration of 'WinMain' was here teste.c:66:2: warning: no newline at end of file Não sei o que está acontecendo. Se alguém souber, posta ai. Vlw!! O código fonte do programa que da esse erro: #include <stdlib.h> #include <stdio.h> #include <windows.h> #include <allegro.h> #define MAX_X 640 #define MAX_Y 480 int inicia (void); void finaliza (void); void jogo (void); int main (void) { if (!inicia()) { finaliza(); return -1; } jogo(); return 0; } END_OF_MAIN(); int inicia (void) { allegro_init(); install_keyboard(); install_mouse(); install_timer(); if (install_sound(DIGI_AUTODETECT,MIDI_AUTODETECT,NULL) < 0) { printf("não foi possivel inicializar o som!\n"); return(FALSE); } set_volume(255,255); set_color_depth(8); if (set_gfx_mode(GFX_AUTODETECT,MAX_X,MAX_Y,0,0) < 0) { printf("não foi possivel inicializar o modo video!\n"); return(FALSE); } return TRUE; } void finaliza (void) { allegro_exit(); } void jogo (void) { BITMAP *tela; PALETTE paleta; clear_to_color(screen,2); tela = load_bitmap("logo.bmp", paleta); set_palette(black_palette); draw_sprite(screen, tela, 115, 150); Sleep(1000); fade_in(paleta, 1); readkey(); fade_out(1); readkey(); }