Trouble trying to compile

2003-09-21
2013-04-22
  • When I try to compile atanks I get an error message. I'm using Mandrake 9.1 and I should have Allegro installed.

    make -C src
    make[1]: Entering directory `/home/fop/atanks/src'
    g++ -c globaldata.cc -o globaldata.o -DLINUX -DVERSION=\"1.0.0-rc2\" -DDATA_DIR=\".\"   -Wall -Iinclude  -g
    In file included from player.h:21,
                     from globaldata.cc:21:
    main.h:24:21: allegro.h: No such file or directory
    In file included from player.h:21,
                     from globaldata.cc:21:
    main.h:124: 'RGB' is used as a type, but is not defined as a type.
    main.h:244: syntax error before `*' token
    main.h:247: syntax error before `*' token
    main.h:248: syntax error before `*' token
    main.h:249: syntax error before `*' token
    main.h:250: syntax error before `*' token
    main.h:251: syntax error before `*' token
    main.h:252: syntax error before `*' token
    main.h:253: syntax error before `*' token
    main.h:254: syntax error before `*' token
    main.h:255: syntax error before `*' token
    main.h:256: syntax error before `*' token
    main.h:257: syntax error before `*' token
    main.h:258: syntax error before `*' token
    main.h:265: type specifier omitted for parameter `BITMAP'
    main.h:265: parse error before `*' token
    main.h:273: `BITMAP' was not declared in this scope
    main.h:273: `target' was not declared in this scope
    main.h:273: variable or field `quickChange' declared void
    main.h:274: `BITMAP' was not declared in this scope
    main.h:274: `target' was not declared in this scope
    main.h:274: variable or field `change' declared void
    main.h:279: `BITMAP' was not declared in this scope
    main.h:279: `bmp' was not declared in this scope
    main.h:279: parse error before `*' token
    In file included from globaldata.cc:22:
    globaldata.h:51: syntax error before `*' token
    globaldata.cc: In member function `void GLOBALDATA::addPlayer(PLAYER*)':
    globaldata.cc:188: `FALSE' undeclared (first use this function)
    globaldata.cc:188: (Each undeclared identifier is reported only once for each function it appears in.)
    globaldata.cc: In member function `void GLOBALDATA::removePlayer(PLAYER*)':
    globaldata.cc:203: `TRUE' undeclared (first use this function)
    make[1]: *** [globaldata.o] Error 1
    make[1]: Leaving directory `/home/fop/atanks/src'
    make: *** [all] Error 2

     
    • Jesse Smith
      Jesse Smith
      2006-12-21

      I'm taking a guess here. But it looks like you don't have the development version of Allegro installed.
      There are generally two allegro packages in a distro. The regular library for running the app and
      the deveopment one for compiling. You need both.
      Perhaps this link will help:
      http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/allegro-devel