uEh... estranho... nao ta compilando mais nada... nem no GCC nem no Code::Blocks
Bom olha o programa que eu fiz:
#include <allegro.h>
int main() {
allegro_init();
install_keyboard();
set_color_depth(32);
set_gfx_mode(GFX_SAFE, 800 , 600 , 0 , 0 );
while(!key[KEY_ESC]) {
textout(screen, font, "Hello World", 1,1, makecol(255,0,0 ) );
};
return 0;
}
END_OF_MAIN()
Ele soh imprime na tela Hello World... E olha quando dei rebuild:
Compiling: main.cpp
In file included from /usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/internal/alconfig.h:44,
from /usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/base.h:40,
from /usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro.h:25,
from main.cpp:1:
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/almngw32.h:22:19: error: io.h: No such file or directory
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/almngw32.h:24:23: error: direct.h: No such file or directory
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/base.h:80: error: ‘dllimport’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/base.h:80: error: expected ‘,’ or ‘;’ before ‘int’
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/unicode.h:50: error: redefinition of ‘int __declspec’
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/base.h:80: error: ‘int __declspec’ previously defined here
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/unicode.h:50: error: ‘dllimport’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/unicode.h:52: error: redefinition of ‘int __declspec’
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/base.h:80: error: ‘int __declspec’ previously defined here
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/unicode.h:52: error: ‘dllimport’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/unicode.h:53: error: redefinition of ‘int __declspec’
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/base.h:80: error: ‘int __declspec’ previously defined here
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/unicode.h:53: error: ‘dllimport’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/unicode.h:54: error: redefinition of ‘int __declspec’
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/base.h:80: error: ‘int __declspec’ previously defined here
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/unicode.h:54: error: ‘dllimport’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/unicode.h:55: error: redefinition of ‘int __declspec’
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/base.h:80: error: ‘int __declspec’ previously defined here
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/unicode.h:55: error: ‘dllimport’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/unicode.h:56: error: redefinition of ‘int __declspec’
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/base.h:80: error: ‘int __declspec’ previously defined here
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/unicode.h:56: error: ‘dllimport’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/unicode.h:57: error: redefinition of ‘int __declspec’
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/base.h:80: error: ‘int __declspec’ previously defined here
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/unicode.h:57: error: ‘dllimport’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/unicode.h:58: error: redefinition of ‘int __declspec’
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/base.h:80: error: ‘int __declspec’ previously defined here
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/unicode.h:58: error: ‘dllimport’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/system.h:37: error: redefinition of ‘int __declspec’
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/base.h:80: error: ‘int __declspec’ previously defined here
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/system.h:37: error: ‘dllimport’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/system.h:38: error: redefinition of ‘int __declspec’
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/base.h:80: error: ‘int __declspec’ previously defined here
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/system.h:38: error: ‘dllimport’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/system.h:64: error: redefinition of ‘int __declspec’
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/base.h:80: error: ‘int __declspec’ previously defined here
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/system.h:64: error: ‘dllimport’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/system.h:65: error: redefinition of ‘int __declspec’
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/base.h:80: error: ‘int __declspec’ previously defined here
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/system.h:65: error: ‘dllimport’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/system.h:66: error: redefinition of ‘int __declspec’
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/base.h:80: error: ‘int __declspec’ previously defined here
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/system.h:66: error: ‘dllimport’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/system.h:67: error: redefinition of ‘int __declspec’
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/base.h:80: error: ‘int __declspec’ previously defined here
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/system.h:67: error: ‘dllimport’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/system.h: In function ‘int install_allegro(int, int*, int (*)(void (*)()))’:
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/system.h:81: error: ‘allegro_error’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/system.h: At global scope:
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/system.h:112: error: redefinition of ‘int __declspec’
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/base.h:80: error: ‘int __declspec’ previously defined here
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/system.h:112: error: ‘dllimport’ was not declared in this scope
Process terminated with status 1 (0 minutes, 2 seconds)
50 errors, 0 warnings
acho q o problem agora eh com o allegro...