(RESOLVIDO)Problemas com Allegro...

Iniciado por Natureba, 28 de Julho de 2006, 15:19

tópico anterior - próximo tópico

Natureba

Ae pessoal...
Eu instalei o Allegro através do Apt-get:
#sudo apt-get install allegro...
e depois disso fui compilar um arquivo para teste com o seguinte conteúdo:

#include <allegro.h>



int main (int argc, char *argv[]) {

    allegro_init();

    install_keyboard();

    set_gfx_mode(GFX_AUTODETECT, 640,480,0,0);

    readkey();

    return 0;

}

END_OF_MAIN()


salvei como main.cpp e no terminal digitei:

#gcc main.cpp -o telavazia -lalleg


e em seguida no terminal apareceram um milhao de erros que eu nao posso postar aqui por que o forum diz:

A mensagem excede o tamanho máximo permitido (20000 caracteres).


alguem sabe oq pode ser?

Valeu.
Natureba.

Lamego

Se não der nenhum detalhe dos 200000 erros que você tem nós não somos adivinhos...
João Luís Marques Pinto
Mais programs e jogos para o Ubuntu

Natureba

Citação de: Lamego online 01 de Agosto de 2006, 19:33
Se não der nenhum detalhe dos 200000 erros que você tem nós não somos adivinhos...


/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/midi.h:127: 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/midi.h:127: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/midi.h:128: 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/midi.h:128: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/midi.h:129: 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/midi.h:129: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/midi.h:131: 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/midi.h:131: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/fmaths.h:34: 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/fmaths.h:34: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/fmaths.h:35: 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/fmaths.h:35: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/fmaths.h:36: 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/fmaths.h:36: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/al386gcc.h: In function 'fixed fixadd(fixed, fixed)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/al386gcc.h:133: error: 'allegro_errno' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/al386gcc.h:133: error: memory input 4 is not directly addressable
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/al386gcc.h: In function 'fixed fixsub(fixed, fixed)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/al386gcc.h:171: error: 'allegro_errno' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/al386gcc.h:171: error: memory input 4 is not directly addressable
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/al386gcc.h: In function 'fixed fixmul(fixed, fixed)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/al386gcc.h:209: error: 'allegro_errno' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/al386gcc.h:209: error: memory input 5 is not directly addressable
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/al386gcc.h: In function 'fixed fixdiv(fixed, fixed)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/al386gcc.h:261: error: 'allegro_errno' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/al386gcc.h:261: error: memory input 6 is not directly addressable
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/al386gcc.h: In function 'int fixceil(fixed)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/al386gcc.h:366: error: 'allegro_errno' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/al386gcc.h:366: error: memory input 3 is not directly addressable
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/fmaths.inl: In function 'fixed ftofix(double)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/fmaths.inl:32: error: 'allegro_errno' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/fmaths.inl:32: error: 'allegro_errno' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/fmaths.inl: In function 'fixed fixcos(fixed)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/fmaths.inl:156: error: '_cos_tbl' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/fmaths.inl: In function 'fixed fixsin(fixed)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/fmaths.inl:162: error: '_cos_tbl' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/fmaths.inl: In function 'fixed fixtan(fixed)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/fmaths.inl:168: error: '_tan_tbl' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/fmaths.inl: In function 'fixed fixacos(fixed)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/fmaths.inl:174: error: 'allegro_errno' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/fmaths.inl:174: error: '_acos_tbl' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/fmaths.inl: In function 'fixed fixasin(fixed)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/fmaths.inl:185: error: 'allegro_errno' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/fmaths.inl:185: error: '_acos_tbl' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/matrix.h: At global scope:
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/matrix.h:44: 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/matrix.h:44: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/matrix.h:45: 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/matrix.h:45: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/quat.h:34: 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/quat.h:34: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/3dmaths.h:41: 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/3dmaths.h:41: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/3dmaths.h:42: 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/3dmaths.h:42: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/3dmaths.h:43: 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/3dmaths.h:43: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/3dmaths.h:44: 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/3dmaths.h:44: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/3dmaths.h:46: 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/3dmaths.h:46: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/3dmaths.h:47: 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/3dmaths.h:47: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/3dmaths.h:48: 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/3dmaths.h:48: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/3dmaths.h:49: 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/3dmaths.h:49: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/3dmaths.inl: In function 'void persp_project(fixed, fixed, fixed, fixed*, fixed*)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/3dmaths.inl:39: error: '_persp_xscale' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/3dmaths.inl:39: error: '_persp_xoffset' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/3dmaths.inl:39: error: '_persp_yscale' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/3dmaths.inl:39: error: '_persp_yoffset' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/3dmaths.inl: In function 'void persp_project_f(float, float, float, float*, float*)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/3dmaths.inl:46: error: '_persp_xscale_f' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/3dmaths.inl:46: error: '_persp_xoffset_f' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/3dmaths.inl:46: error: '_persp_yscale_f' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/inline/3dmaths.inl:46: error: '_persp_yoffset_f' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/alcompat.h: At global scope:
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/alcompat.h:166: 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/alcompat.h:166: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/alcompat.h: In function 'void textout(BITMAP*, const FONT*, const char*, int, int, int)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/alcompat.h:169: error: '_textmode' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/alcompat.h: In function 'void textout_centre(BITMAP*, const FONT*, const char*, int, int, int)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/alcompat.h:174: error: '_textmode' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/alcompat.h: In function 'void textout_right(BITMAP*, const FONT*, const char*, int, int, int)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/alcompat.h:179: error: '_textmode' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/alcompat.h: In function 'void textout_justify(BITMAP*, const FONT*, const char*, int, int, int, int, int)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/alcompat.h:184: error: '_textmode' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/alcompat.h: In function 'void draw_character(BITMAP*, BITMAP*, int, int, int)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/alcompat.h:194: error: '_textmode' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/alcompat.h: In function 'int gui_textout(BITMAP*, const char*, int, int, int, int)':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/alcompat.h:199: error: '_textmode' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/alcompat.h: In function 'void yield_timeslice()':
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/alcompat.h:223: error: 'system_driver' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/alcompat.h: At global scope:
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/alcompat.h:233: 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/alcompat.h:233: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/alwin.h:49: error: expected initializer before 'WinMain'
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/alwin.h:68: 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/platform/alwin.h:68: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/alwin.h:78: 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/platform/alwin.h:78: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/alwin.h:79: 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/platform/alwin.h:79: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/alwin.h:88: 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/platform/alwin.h:88: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/alwin.h:97: 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/platform/alwin.h:97: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/alwin.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/platform/alwin.h:112: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/alwin.h:113: 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/platform/alwin.h:113: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/alwin.h:114: 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/platform/alwin.h:114: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/alwin.h:115: 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/platform/alwin.h:115: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/alwin.h:116: 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/platform/alwin.h:116: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/alwin.h:117: 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/platform/alwin.h:117: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/alwin.h:147: 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/platform/alwin.h:147: error: 'dllimport' was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/allegro/platform/alwin.h:148: 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/platform/alwin.h:148: error: 'dllimport' was not declared in this scope
main.cpp:10: error: expected initializer before 'WinMain'


bom coloquei uma parte...(o que o forum dexou)

Darcamo

Vc instalou a versão de desenvolvimento da Allegro? A que tem -dev no nome?

Se não instalou a versão de desenvolvimento, então esse é o problema. Instala o pacote liballegro4.2-dev

Natureba

realmente nao tinha instalado esse pacote... mas eu instalei ele e continuou dando o mesmo erro...

Lamego

O GCC é um compilador de C, não de C++, o exemplo que você tá compilando é em C++ .
A forma correcta de compilar esse programa é:
g++ main.cpp -o telavazia `allegro-config --cflags --libs`
João Luís Marques Pinto
Mais programs e jogos para o Ubuntu

Natureba

Citação de: Lamego online 05 de Agosto de 2006, 18:40
O GCC é um compilador de C, não de C++, o exemplo que você tá compilando é em C++ .
A forma correcta de compilar esse programa é:
g++ main.cpp -o telavazia `allegro-config --cflags --libs`

mesmos erros...

Lamego

Remove os pacotes todos do allegro e reinstala, você deve ter feito alguma besteira.
Eu instalei aqui os pacotes normails do ubuntu, compilei e programa e não deu erro nenhum...
João Luís Marques Pinto
Mais programs e jogos para o Ubuntu

Natureba

#8
putz cara q burro... pq nao falei antes??? foi malz cara, mas quando eu fui instalar o allegro nao existia o pacote allegro... soh os pacotes allegro-demo, allegro-demo-data e allegro-examples... eu nem lembrava disso... agora q fui desinstalar o allegro q percebi... tipo podia ser esse allegro-demo??? tem algum repositório q eu possa adicionar para baixar o allegro normal???

eu tentei tambem baixar o allegro, mas nao consigo compilar ele... eu do ./configure e depois nao tem nenhum arquivo make nem make install...

valeu.
Natureba.

Lamego

Citarputz cara q burro... pq nao falei antes??? foi malz cara, mas quando eu fui instalar o allegro nao existia o pacote allegro... soh os pacotes allegro-demo, allegro-demo-data e allegro-examples... eu nem lembrava disso... agora q fui desinstalar o allegro q percebi... tipo podia ser esse allegro-demo??? tem algum repositório q eu possa adicionar para baixar o allegro normal???

Natureba, se não apareceu o pacote allegro é porque você não tem os repositórios universe/multiverse configurados, eu instalei o pacote sem problemas...
João Luís Marques Pinto
Mais programs e jogos para o Ubuntu

daskrs

Natureba.. tu fez uns 3 topicos pra perguntar a mesma coisa, tenta fazer só um da proxima vez, ajuda pra quem vai tentar te ajudar e vc não fica flodando o forum..

O teu problema ta no linker. Que tu ta fazendo errado.
Olha o outro topico que tu fez que eu ja respondi como tu faz para linkar no code::blocks..
Mas como falaram ae em cima, tenta instalar o Allegro pelo apt-get e não pelo source.
Isso vai evitar que tu tenha qualquer problema na instalação.

Natureba

#11
Citação de: Lamego online 08 de Agosto de 2006, 07:48
Citarputz cara q burro... pq nao falei antes??? foi malz cara, mas quando eu fui instalar o allegro nao existia o pacote allegro... soh os pacotes allegro-demo, allegro-demo-data e allegro-examples... eu nem lembrava disso... agora q fui desinstalar o allegro q percebi... tipo podia ser esse allegro-demo??? tem algum repositório q eu possa adicionar para baixar o allegro normal???

Natureba, se não apareceu o pacote allegro é porque você não tem os repositórios universe/multiverse configurados, eu instalei o pacote sem problemas...

cara nos repositórios do synaptic estão todos os repositorios marcados... tem algum que eu deva adicionar pára baixar o allegro???

Citação de: daskrs online 08 de Agosto de 2006, 07:48
Citar
Natureba.. tu fez uns 3 topicos pra perguntar a mesma coisa, tenta fazer só um da proxima vez, ajuda pra quem vai tentar te ajudar e vc não fica flodando o forum..

Meu eu nao criei 3 tópicos para o mesmo assunto... criei 2, e criei pq achava q o erro fosse com code::blocks mas quando percebi que nao era eu postei pedindo ajuda sobre allegro...

Falou.
Natureba.

Natureba

CABOOOOOOOOOOOOOOO!
finalmenteeee... o problema estava na instalaçao mesmo... baixei o allegro em formato .tar.gz e descompactei... em seguida entrei na pasta e no terminal digitei:

chmod +x fix.sh
./fix.sh unix
./configure
make
su -c "make install"


e todos os programas em allegro ja podem ser compilados  com:
g++ <nomedoprograma>.cpp -o <nomedoprograma> `allegro-config --libs`

Valeu a Ajuda de todos...

OBS: desculpa o Flood!

Natureba.

Lamego

Natureba,
na próxima tenta instalar correctamente a parir do gestor de pacotes.
Se você tivesse outros programas do Ubuntu (jogos) dependentes de allegro neste momento você poderia ter corrompido as suas dependencias.
João Luís Marques Pinto
Mais programs e jogos para o Ubuntu