[1] Comentário enviado por
White_Tiger em 22/03/2007 - 18:22h:
Olha o erro que deu:
whitetiger@prmt3969:~/downloads/ownnew8> ./weboflife
Video Memory: 0 kb
Falha de segmentação
whitetiger@prmt3969:~/downloads/ownnew8> ./fastweb
Video Memory: 0 kb
Falha de segmentação
Testei tanto com o g++ quanto com o g++-4.1 que é o que eu tenho aqui. Segue as linhas do make
#g++-4.1 -Wall -ansi -g sprite.cpp -o o -L/usr/X11R6/lib -lGL -lGLU `sdl-config --cflags --libs`
g++-4.1 -Wall -ansi -g main.cpp font.cpp Back.c plant.cpp sprite.cpp scenario.cpp interface.cpp blit.cpp -o weboflife -L/usr/X11R6/lib -lGL -lGLU `sdl-config --cflags --libs`
main.cpp: In function ‘int main(int, char**)’:
main.cpp:227: warning: unused variable ‘i’
main.cpp:189: warning: unused variable ‘action’
main.cpp:190: warning: unused variable ‘option’
blit.h: At global scope:
blit.h:62: warning: ‘int comp(const void*, const void*)’ defined but not used
plant.cpp: In constructor ‘plant::plant(int, int, unsigned char, blit*, SDL_Surface**, SDL_Surface**, collision_struct***)’:
plant.cpp:101: warning: large integer implicitly truncated to unsigned type
blit.h: At global scope:
blit.h:62: warning: ‘int comp(const void*, const void*)’ defined but not used
blit.h:62: warning: ‘int comp(const void*, const void*)’ defined but not used
g++-4.1 -Wall -ansi -g main2.cpp font.cpp Back.c plant.cpp sprite.cpp scenario.cpp interface.cpp blit.cpp -o fastweb -L/usr/X11R6/lib -lGL -lGLU `sdl-config --cflags --libs`
main2.cpp: In function ‘int main(int, char**)’:
main2.cpp:227: warning: unused variable ‘i’
main2.cpp:189: warning: unused variable ‘action’
main2.cpp:190: warning: unused variable ‘option’
blit.h: At global scope:
blit.h:62: warning: ‘int comp(const void*, const void*)’ defined but not used
plant.cpp: In constructor ‘plant::plant(int, int, unsigned char, blit*, SDL_Surface**, SDL_Surface**, collision_struct***)’:
plant.cpp:101: warning: large integer implicitly truncated to unsigned type
blit.h: At global scope:
blit.h:62: warning: ‘int comp(const void*, const void*)’ defined but not used
blit.h:62: warning: ‘int comp(const void*, const void*)’ defined but not used
[2] Comentário enviado por
Knux em 26/03/2007 - 10:40h:
olá, tenho uma solução enviada pelo autor do projeto:
"Como voce pode ver nao existe erros de compilacao, entao o segmentation
fault deve ter sido ocasionado por algum erro no carregamento das figuras,
tente fazer o download denovo. Isto deve resolver o problema."