LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-16-2004, 06:07 PM   #1
adizzle
LQ Newbie
 
Registered: May 2004
Posts: 5

Rep: Reputation: 0
Errors when compiling anything!


OK I am a super noob to linux i've just started learning a couple days ago. I am having a big problem though. Whenever I try to compile a program I am getting many different kinds of errors and the program will not install. For example when i try to "make" a game called Moon Defence, I get this:

Code:
alexjh@linux:~/Desktop/moondefence-1.5> make
g++  -c main.cpp -o main.o   -fno-access-control -fexpensive-optimizations -O3
In file included from main.cpp:3:
objects.h:6:21: allegro.h: No such file or directory
In file included from main.cpp:3:
objects.h:46: error: syntax error before `*' token
objects.h:51: error: type specifier omitted for parameter `BITMAP'
objects.h:51: error: syntax error before `*' token
objects.h:55: error: `BITMAP' was not declared in this scope
objects.h:55: error: `dest' was not declared in this scope
objects.h:55: error: invalid data member initialization
objects.h:55: error: (use `=' to initialize static data members)
objects.h:55: error: variable or field `draw' declared void
objects.h:55: error: `draw' declared as a `virtual' field
objects.h:65: error: `BITMAP' was not declared in this scope
objects.h:65: error: `img' was not declared in this scope
objects.h:66: error: variable declaration is not allowed here
objects.h:66: error: syntax error before `{' token
objects.h:68: error: `img' was not declared in this scope
objects.h:68: error: ISO C++ forbids declaration of `size_x' with no type
objects.h:68: error: ISO C++ forbids initialization of member `size_x'
objects.h:68: error: making `size_x' static
objects.h:68: error: ISO C++ forbids in-class initialization of non-const
   static member `size_x'
objects.h:68: error: declaration of `int sprite::size_x'
objects.h:47: error: conflicts with previous declaration `int sprite::size_x'
objects.h:69: error: `img' was not declared in this scope
objects.h:69: error: ISO C++ forbids declaration of `size_y' with no type
objects.h:69: error: ISO C++ forbids initialization of member `size_y'
objects.h:69: error: making `size_y' static
objects.h:69: error: ISO C++ forbids in-class initialization of non-const
   static member `size_y'
objects.h:69: error: declaration of `int sprite::size_y'
objects.h:47: error: conflicts with previous declaration `int sprite::size_y'
objects.h: In member function `virtual bool sprite::animate()':
objects.h:64: error: `FALSE' undeclared (first use this function)
objects.h:64: error: (Each undeclared identifier is reported only once for each
   function it appears in.)
objects.h: At global scope:
objects.h:71: error: syntax error before `}' token
objects.h:89: error: `BITMAP' was not declared in this scope
objects.h:89: error: `dest' was not declared in this scope
objects.h:89: error: invalid data member initialization
objects.h:89: error: variable or field `draw' declared void
objects.h:89: error: `draw' declared as a `virtual' field
objects.h:121: error: `BITMAP' was not declared in this scope
objects.h:121: error: `dest' was not declared in this scope
objects.h:121: error: invalid data member initialization
objects.h:121: error: variable or field `draw' declared void
objects.h:121: error: `draw' declared as a `virtual' field
main.cpp:19: error: syntax error before `*' token
main.cpp:20: error: syntax error before `*' token
main.cpp:44: error: syntax error before `*' token
main.cpp:45: error: syntax error before `*' token
main.cpp:46: error: syntax error before `*' token
main.cpp:47: error: syntax error before `*' token
main.cpp:48: error: syntax error before `*' token
main.cpp:49: error: syntax error before `*' token
main.cpp:50: error: syntax error before `*' token
main.cpp:51: error: syntax error before `*' token
main.cpp:106: error: `BITMAP' was not declared in this scope
main.cpp:106: error: `bmp' was not declared in this scope
main.cpp:106: error: invalid data member initialization
main.cpp:107: error: `BITMAP' was not declared in this scope
main.cpp:107: error: `bmp' was not declared in this scope
main.cpp:107: error: invalid data member initialization
main.cpp:107: error: variable or field `show' declared void
main.cpp:110: error: `BITMAP' was not declared in this scope
main.cpp:110: error: `bmp' was not declared in this scope
main.cpp:111: error: `bool CHighScores::add_new' is not a static member of `
   class CHighScores'
main.cpp:111: error: syntax error before `{' token
main.cpp:126: error: `bmp' was not declared in this scope
main.cpp:126: error: `font' was not declared in this scope
main.cpp:126: error: ISO C++ forbids declaration of `textprintf' with no type
main.cpp:126: error: initializer list being treated as compound expression
main.cpp:127: error: `bmp' was not declared in this scope
main.cpp:127: error: `font' was not declared in this scope
main.cpp:127: error: `last_name' was not declared in this scope
main.cpp:127: error: ISO C++ forbids declaration of `textprintf' with no type
main.cpp:127: error: redefinition of `int textprintf'
main.cpp:126: error: `int textprintf' previously defined here
main.cpp:127: error: initializer list being treated as compound expression
main.cpp:128: error: syntax error before `}' token
main.cpp:141: error: syntax error before `if'
main.cpp:154: error: syntax error before `.' token
main.cpp:155: error: syntax error before `.' token
main.cpp:156: error: syntax error before `.' token
main.cpp:157: error: `vec' was not declared in this scope
main.cpp:157: error: `vec' was not declared in this scope
main.cpp:157: error: ISO C++ forbids declaration of `sort' with no type
main.cpp:157: error: initializer list being treated as compound expression
main.cpp:158: error: syntax error before `.' token
main.cpp:159: error: ISO C++ forbids declaration of `save' with no type
main.cpp:160: error: ISO C++ forbids declaration of `game_plays' with no type
main.cpp:160: error: conflicting types for `int game_plays'
main.cpp:36: error: previous declaration as `bool game_plays'
main.cpp:161: error: ISO C++ forbids declaration of `show_high_score' with no
   type
main.cpp:161: error: conflicting types for `int show_high_score'
main.cpp:84: error: previous declaration as `bool show_high_score'
main.cpp:162: error: ISO C++ forbids declaration of `fire_pressed' with no type
main.cpp:162: error: conflicting types for `int fire_pressed'
main.cpp:30: error: previous declaration as `bool fire_pressed'
main.cpp:163: error: syntax error before `return'
main.cpp:174: error: `BITMAP' was not declared in this scope
main.cpp:174: error: `bmp' was not declared in this scope
main.cpp:175: error: variable or field `show' declared void
main.cpp:175: error: `int CHighScores::show' is not a static member of `class
   CHighScores'
main.cpp:175: error: syntax error before `{' token
main.cpp:177: error: `bmp' was not declared in this scope
main.cpp:177: error: `font' was not declared in this scope
main.cpp:177: error: ISO C++ forbids declaration of `textprintf' with no type
main.cpp:177: error: redefinition of `int textprintf'
main.cpp:127: error: `int textprintf' previously defined here
main.cpp:177: error: initializer list being treated as compound expression
main.cpp:178: error: `bmp' was not declared in this scope
main.cpp:178: error: `font' was not declared in this scope
main.cpp:178: error: ISO C++ forbids declaration of `textprintf' with no type
main.cpp:178: error: redefinition of `int textprintf'
main.cpp:177: error: `int textprintf' previously defined here
main.cpp:178: error: initializer list being treated as compound expression
main.cpp:180: error: syntax error before `for'
main.cpp:180: error: syntax error before `;' token
main.cpp:180: error: syntax error before `++' token
main.cpp:183: error: `bmp' was not declared in this scope
main.cpp:183: error: `font' was not declared in this scope
main.cpp:183: error: `a' was not declared in this scope
main.cpp:183: error: `a' was not declared in this scope
main.cpp:183: error: `with_standard_control' was not declared in this scope
main.cpp:183: error: `a' was not declared in this scope
main.cpp:183: error: ISO C++ forbids declaration of `textprintf' with no type
main.cpp:183: error: redefinition of `int textprintf'
main.cpp:178: error: `int textprintf' previously defined here
main.cpp:183: error: initializer list being treated as compound expression
main.cpp:185: error: `bmp' was not declared in this scope
main.cpp:185: error: `font' was not declared in this scope
main.cpp:185: error: `a' was not declared in this scope
main.cpp:185: error: `a' was not declared in this scope
main.cpp:185: error: `with_mouse_control' was not declared in this scope
main.cpp:185: error: `a' was not declared in this scope
main.cpp:185: error: ISO C++ forbids declaration of `textprintf' with no type
main.cpp:185: error: redefinition of `int textprintf'
main.cpp:183: error: `int textprintf' previously defined here
main.cpp:185: error: initializer list being treated as compound expression
main.cpp:186: error: `bmp' was not declared in this scope
main.cpp:186: error: `font' was not declared in this scope
main.cpp:186: error: `a' was not declared in this scope
main.cpp:186: error: `a' was not declared in this scope
main.cpp:186: error: `with_mouse_control' was not declared in this scope
main.cpp:186: error: `a' was not declared in this scope
main.cpp:186: error: ISO C++ forbids declaration of `textprintf' with no type
main.cpp:186: error: redefinition of `int textprintf'
main.cpp:185: error: `int textprintf' previously defined here
main.cpp:186: error: initializer list being treated as compound expression
main.cpp:188: error: syntax error before `}' token
main.cpp: In function `int ShowMenu()':
main.cpp:250: error: `framebuf' undeclared (first use this function)
main.cpp:250: error: `font' undeclared (first use this function)
main.cpp:250: error: `textprintf' cannot be used as a function
main.cpp:252: error: `key' undeclared (first use this function)
main.cpp:252: error: `KEY_ENTER' undeclared (first use this function)
main.cpp:252: error: `joy_b1' undeclared (first use this function)
main.cpp:252: error: `key_shifts' undeclared (first use this function)
main.cpp:252: error: `KB_CTRL_FLAG' undeclared (first use this function)
main.cpp:252: error: `KEY_SPACE' undeclared (first use this function)
main.cpp:252: error: `mouse_b' undeclared (first use this function)
main.cpp:258: error: `KEY_UP' undeclared (first use this function)
main.cpp:258: error: `joy_up' undeclared (first use this function)
main.cpp:271: error: `KEY_DOWN' undeclared (first use this function)
main.cpp:271: error: `joy_down' undeclared (first use this function)
main.cpp:292: error: `textprintf' cannot be used as a function
main.cpp:296: error: `textprintf' cannot be used as a function
main.cpp:298: error: `textprintf' cannot be used as a function
main.cpp:303: error: `textprintf' cannot be used as a function
main.cpp:305: error: `textprintf' cannot be used as a function
main.cpp: In function `void generate_explosion(int)':
main.cpp:325: error: `BITMAP' undeclared (first use this function)
main.cpp:325: error: `temp' undeclared (first use this function)
main.cpp:329: error: `explosion_anim' undeclared (first use this function)
main.cpp:329: error: `create_bitmap' undeclared (first use this function)
main.cpp:330: error: `clear_bitmap' undeclared (first use this function)
main.cpp:351: error: `circle' undeclared (first use this function)
main.cpp:358: error: `circlefill' undeclared (first use this function)
main.cpp:366: error: `getpixel' undeclared (first use this function)
main.cpp:387: error: `putpixel' undeclared (first use this function)
main.cpp:396: error: `blit' undeclared (first use this function)
main.cpp:398: error: `destroy_bitmap' undeclared (first use this function)
main.cpp: In function `void get_frames()':
main.cpp:405: error: `RLE_SPRITE' undeclared (first use this function)
main.cpp:407: error: syntax error before `)' token
main.cpp:408: error: `friendly_missile_frame' undeclared (first use this
   function)
main.cpp:408: error: `create_bitmap' undeclared (first use this function)
main.cpp:409: error: `clear_bitmap' undeclared (first use this function)
main.cpp:410: error: `draw_rle_sprite' undeclared (first use this function)
main.cpp:412: error: syntax error before `)' token
main.cpp:413: error: `enemy_missile_frame' undeclared (first use this function)
main.cpp:423: error: `getpixel' undeclared (first use this function)
main.cpp:427: error: syntax error before `)' token
main.cpp:428: error: `satellite_frame' undeclared (first use this function)
main.cpp:432: error: `satellite_immortal_frame' undeclared (first use this
   function)
main.cpp:439: error: `putpixel' undeclared (first use this function)
main.cpp:442: error: syntax error before `)' token
main.cpp:443: error: `sight_frame' undeclared (first use this function)
main.cpp:450: error: `ufo_frame' undeclared (first use this function)
main.cpp:454: error: `t' undeclared (first use this function)
main.cpp:457: error: syntax error before `)' token
main.cpp:461: error: `bomb_frame' undeclared (first use this function)
main.cpp:463: error: `itofix' undeclared (first use this function)
main.cpp:463: error: `rotate_sprite' undeclared (first use this function)
main.cpp:479: error: `destroy_bitmap' undeclared (first use this function)
main.cpp:482: error: syntax error before `)' token
main.cpp:483: error: syntax error before `)' token
main.cpp:484: error: syntax error before `)' token
main.cpp:485: error: syntax error before `)' token
main.cpp:486: error: syntax error before `)' token
main.cpp:487: error: syntax error before `)' token
main.cpp:488: error: syntax error before `)' token
main.cpp:489: error: syntax error before `)' token
main.cpp:490: error: syntax error before `)' token
main.cpp:491: error: syntax error before `)' token
main.cpp:492: error: syntax error before `)' token
main.cpp:493: error: syntax error before `)' token
main.cpp:494: error: syntax error before `)' token
main.cpp:495: error: syntax error before `)' token
main.cpp:496: error: syntax error before `)' token
main.cpp:497: error: syntax error before `)' token
main.cpp:498: error: syntax error before `)' token
main.cpp:499: error: syntax error before `)' token
main.cpp:500: error: syntax error before `)' token
main.cpp:501: error: syntax error before `)' token
main.cpp:502: error: syntax error before `)' token
main.cpp:503: error: syntax error before `)' token
main.cpp:504: error: syntax error before `)' token
main.cpp:505: error: syntax error before `)' token
main.cpp: In function `void NewGame()':
main.cpp:518: error: `backdrop' undeclared (first use this function)
main.cpp:518: error: `clear_bitmap' undeclared (first use this function)
main.cpp:526: error: `putpixel' undeclared (first use this function)
main.cpp:531: error: syntax error before `)' token
main.cpp:532: error: syntax error before `)' token
main.cpp:532: error: syntax error before `)' token
main.cpp:532: error: syntax error before `)' token
main.cpp:532: error: `draw_rle_sprite' undeclared (first use this function)
main.cpp:539: error: syntax error before `)' token
main.cpp: In function `bool SetGFXMode()':
main.cpp:584: error: `GFX_AUTODETECT_FULLSCREEN' undeclared (first use this
   function)
main.cpp:586: error: `GFX_AUTODETECT_WINDOWED' undeclared (first use this
   function)
main.cpp:588: error: `set_gfx_mode' undeclared (first use this function)
main.cpp:590: error: `GFX_TEXT' undeclared (first use this function)
main.cpp:591: error: `allegro_error' undeclared (first use this function)
main.cpp:591: error: `allegro_message' undeclared (first use this function)
main.cpp:595: error: `RGB' undeclared (first use this function)
main.cpp:595: error: syntax error before `)' token
main.cpp: In function `int main(int, char**)':
main.cpp:605: error: `allegro_init' undeclared (first use this function)
main.cpp:606: error: `install_keyboard' undeclared (first use this function)
main.cpp:607: error: `install_mouse' undeclared (first use this function)
main.cpp:608: error: `install_timer' undeclared (first use this function)
main.cpp:609: error: `initialise_joystick' undeclared (first use this function)
main.cpp:612: error: `LOCK_VARIABLE' undeclared (first use this function)
main.cpp:637: error: `data' undeclared (first use this function)
main.cpp:637: error: `load_datafile' undeclared (first use this function)
main.cpp:640: error: `set_gfx_mode' undeclared (first use this function)
main.cpp:641: error: `allegro_message' undeclared (first use this function)
main.cpp:648: error: `DIGI_NONE' undeclared (first use this function)
main.cpp:650: error: `DIGI_AUTODETECT' undeclared (first use this function)
main.cpp:653: error: `MIDI_NONE' undeclared (first use this function)
main.cpp:655: error: `MIDI_AUTODETECT' undeclared (first use this function)
main.cpp:666: error: `install_sound' undeclared (first use this function)
main.cpp:676: error: `set_window_title' undeclared (first use this function)
main.cpp:680: error: `BPS_TO_TIMER' undeclared (first use this function)
main.cpp:680: error: `install_int_ex' undeclared (first use this function)
main.cpp:685: error: `SECS_TO_TIMER' undeclared (first use this function)
main.cpp:687: error: `create_bitmap' undeclared (first use this function)
main.cpp:701: error: `clear' undeclared (first use this function)
main.cpp:706: error: `MIDI' undeclared (first use this function)
main.cpp:706: error: syntax error before `)' token
main.cpp:711: error: `KEY_ESC' undeclared (first use this function)
main.cpp:758: error: `textprintf' cannot be used as a function
main.cpp:763: error: `textprintf' cannot be used as a function
main.cpp:768: error: `stretch_sprite' undeclared (first use this function)
main.cpp:816: error: `acquire_screen' undeclared (first use this function)
main.cpp:817: error: `screen' undeclared (first use this function)
main.cpp:817: error: `blit' undeclared (first use this function)
main.cpp:818: error: `release_screen' undeclared (first use this function)
main.cpp:821: error: `keyboard_needs_poll' undeclared (first use this function)
main.cpp:822: error: `poll_keyboard' undeclared (first use this function)
main.cpp:824: error: `mouse_needs_poll' undeclared (first use this function)
main.cpp:825: error: `poll_mouse' undeclared (first use this function)
main.cpp:827: error: `poll_joystick' undeclared (first use this function)
main.cpp: At global scope:
main.cpp:899: error: ISO C++ forbids declaration of `END_OF_MAIN' with no type
make: *** [main.o] Error 1
The answer is probably simple, but for me, figuring it out is not. Any help?
 
Old 06-16-2004, 06:14 PM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 34
I don't know what the root cause is, but you are missing a file 'allegro.h'

Code:
objects.h:6:21: allegro.h: No such file or directory
That is causing a large number of the errors you see.

cd to the directory where the code lives.

try:
Code:
find . -name allegro.h -exec ll {}  \;
This will show you where and if the file exists.
 
Old 06-16-2004, 06:17 PM   #3
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 34
Oh.

try compiling this:

Code:
#include <stdio.h>
int main( int argc, char *argv[]){
       printf("%s \n", "Hello");
       return 0;

}
To compile:
Code:
 gcc helllo.c -o hello
to run it:
Code:
 ./hello
You should see zero errors if your compiler is built correctly.
 
Old 06-16-2004, 06:22 PM   #4
adizzle
LQ Newbie
 
Registered: May 2004
Posts: 5

Original Poster
Rep: Reputation: 0
linux:/home/alexjh # gcc hello.c -o hello
hello.c:6:2: warning: no newline at end of file
linux:/home/alexjh # ./hello
Hello
linux:/home/alexjh #

it ran fine but i dont know if that no newline thing means anything.
 
Old 06-16-2004, 06:27 PM   #5
adizzle
LQ Newbie
 
Registered: May 2004
Posts: 5

Original Poster
Rep: Reputation: 0
here are the errors for a window decoration i tried to compile:

Code:
alexjh@linux:~/Desktop/alloyon-0.2> make
make  all-recursive
make[1]: Entering directory `/home/alexjh/Desktop/alloyon-0.2'
Making all in alloyonclient
make[2]: Entering directory `/home/alexjh/Desktop/alloyon-0.2/alloyonclient'
Making all in config
make[3]: Entering directory `/home/alexjh/Desktop/alloyon-0.2/alloyonclient/config'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/alexjh/Desktop/alloyon-0.2/alloyonclient/config'
make[3]: Entering directory `/home/alexjh/Desktop/alloyon-0.2/alloyonclient'
source='alloyonclient.cpp' object='alloyonclient.lo' libtool=yes \
depfile='.deps/alloyonclient.Plo' tmpdepfile='.deps/alloyonclient.TPlo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
/bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include  -I/opt/kde3/include/kwin  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_PLUGIN -c -o alloyonclient.lo `test -f 'alloyonclient.cpp' || echo './'`alloyonclient.cpp
In file included from alloyonclient.cpp:26:
alloyonclient.h:15:25: kdecoration.h: No such file or directory
alloyonclient.h:16:32: kdecorationfactory.h: No such file or directory
In file included from alloyonclient.cpp:26:
alloyonclient.h:28: error: syntax error before `{' token
alloyonclient.h:29: error: virtual outside class declaration
alloyonclient.h:29: error: non-member function `const char* className()' cannot
   have `const' method qualifier
alloyonclient.h:29: error: virtual outside class declaration
alloyonclient.h:29: error: virtual outside class declaration
alloyonclient.h:29: error: virtual outside class declaration
alloyonclient.h:29: error: virtual outside class declaration
alloyonclient.h: In function `QObject* qObject()':
alloyonclient.h:29: error: invalid use of `this' in non-member function
alloyonclient.h: At global scope:
alloyonclient.h:29: error: syntax error before `private'
alloyonclient.h:32: error: destructors must be member functions
alloyonclient.h:34: error: virtual outside class declaration
alloyonclient.h:35: error: virtual outside class declaration
alloyonclient.h:37: error: virtual outside class declaration
alloyonclient.h:37: error: non-member function `QSize minimumSize()' cannot
   have `const' method qualifier
alloyonclient.h:38: error: virtual outside class declaration
alloyonclient.h:38: error: non-member function `void borders(int&, int&, int&,
   int&)' cannot have `const' method qualifier
alloyonclient.h:40: error: syntax error before `protected'
alloyonclient.h:42: error: virtual outside class declaration
alloyonclient.h:43: error: virtual outside class declaration
alloyonclient.h:44: error: virtual outside class declaration
alloyonclient.h:45: error: virtual outside class declaration
alloyonclient.h:46: error: virtual outside class declaration
alloyonclient.h:48: error: virtual outside class declaration
alloyonclient.h:49: error: virtual outside class declaration
alloyonclient.h:51: error: virtual outside class declaration
alloyonclient.h:52: error: virtual outside class declaration
alloyonclient.h:54: error: syntax error before `private'
alloyonclient.h:58: error: syntax error before `&' token
alloyonclient.h:63: error: syntax error before `private'
alloyonclient.h:66: error: syntax error before `}' token
In file included from alloyonclient.cpp:27:
alloyonhandler.h:15:32: kdecorationfactory.h: No such file or directory
alloyonhandler.h:16:25: kdecoration.h: No such file or directory
In file included from alloyonclient.cpp:27:
alloyonhandler.h:28: error: syntax error before `{' token
alloyonhandler.h:29: error: virtual outside class declaration
alloyonhandler.h:29: error: non-member function `const char* className()'
   cannot have `const' method qualifier
alloyonhandler.h:29: error: virtual outside class declaration
alloyonhandler.h:29: error: virtual outside class declaration
alloyonhandler.h:29: error: virtual outside class declaration
alloyonhandler.h:29: error: virtual outside class declaration
alloyonhandler.h: In function `QObject* qObject()':
alloyonhandler.h:29: error: redefinition of `QObject* qObject()'
alloyonclient.h:29: error: `QObject* qObject()' previously defined here
alloyonhandler.h:29: error: redefinition of `QObject* qObject()'
alloyonclient.h:29: error: `QObject* qObject()' previously defined here
alloyonhandler.h:29: error: invalid use of `this' in non-member function
alloyonhandler.h: At global scope:
alloyonhandler.h:29: error: default argument given for parameter 2 of `QString
   tr(const char*, const char*)'
alloyonclient.h:29: error: after previous specification in `QString tr(const
   char*, const char*)'
alloyonhandler.h:29: error: default argument given for parameter 2 of `QString
   trUtf8(const char*, const char*)'
alloyonclient.h:29: error: after previous specification in `QString
   trUtf8(const char*, const char*)'
alloyonhandler.h:29: error: syntax error before `private'
alloyonhandler.h:32: error: destructors must be member functions
alloyonhandler.h:33: error: virtual outside class declaration
alloyonhandler.h:33: error: new declaration `bool reset(long unsigned int)'
alloyonclient.h:52: error: ambiguates old declaration `void reset(long unsigned
   int)'
alloyonhandler.h:35: error: syntax error before `*' token
alloyonhandler.h: In function `bool initialized()':
alloyonhandler.h:37: error: `m_initialized' undeclared (first use this
   function)
alloyonhandler.h:37: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
alloyonhandler.h: In function `bool titleShadow()':
alloyonhandler.h:38: error: `m_titleShadow' undeclared (first use this
   function)
alloyonhandler.h: In function `int titleShadowSize()':
alloyonhandler.h:39: error: `m_titleShadowSize' undeclared (first use this
   function)
alloyonhandler.h: In function `int borderSize()':
alloyonhandler.h:40: error: `m_borderSize' undeclared (first use this function)
alloyonhandler.h: In function `int buttonSize()':
alloyonhandler.h:41: error: `m_buttonSize' undeclared (first use this function)
alloyonhandler.h: In function `int buttonSpacing()':
alloyonhandler.h:42: error: `m_buttonSpacing' undeclared (first use this
   function)
alloyonhandler.h: In function `int titleSize()':
alloyonhandler.h:43: error: `m_titleSize' undeclared (first use this function)
alloyonhandler.h: In function `bool redCloseButton()':
alloyonhandler.h:44: error: `m_redCloseButton' undeclared (first use this
   function)
alloyonhandler.h: At global scope:
alloyonhandler.h:46: error: syntax error before `private'
alloyonhandler.h:48: error: `bool m_titleShadow' used prior to declaration
alloyonhandler.h:49: error: `int m_titleShadowSize' used prior to declaration
alloyonhandler.h:50: error: `int m_borderSize' used prior to declaration
alloyonhandler.h:51: error: `int m_buttonSize' used prior to declaration
alloyonhandler.h:52: error: `int m_titleSize' used prior to declaration
alloyonhandler.h:53: error: `int m_buttonSpacing' used prior to declaration
alloyonhandler.h:54: error: `bool m_initialized' used prior to declaration
alloyonhandler.h:55: error: `bool m_redCloseButton' used prior to declaration
alloyonhandler.h:56: error: syntax error before `}' token
alloyonclient.cpp:31: error: `KDecorationBridge' was not declared in this scope
alloyonclient.cpp:31: error: `bridge' was not declared in this scope
alloyonclient.cpp:31: error: `KDecorationFactory' was not declared in this
   scope
alloyonclient.cpp:31: error: `factory' was not declared in this scope
alloyonclient.cpp:32: error: invalid use of undefined type `class AlloyonClient
   '
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp:32: error: invalid declarator
alloyonclient.cpp:32: error: syntax error before `:' token
alloyonclient.cpp:37: error: invalid use of undefined type `class AlloyonClient
   '
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp:46: error: invalid use of undefined type `class AlloyonClient
   '
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp: In member function `void AlloyonClient::init()':
alloyonclient.cpp:47: error: `WResizeNoErase' undeclared (first use this
   function)
alloyonclient.cpp:47: error: `WRepaintNoErase' undeclared (first use this
   function)
alloyonclient.cpp:47: error: `createMainWidget' undeclared (first use this
   function)
alloyonclient.cpp:48: error: `widget' undeclared (first use this function)
alloyonclient.cpp:49: error: `NoBackground' undeclared (first use this
   function)
alloyonclient.cpp:56: error: incomplete type 'AlloyonHandler' cannot be used to
   name a scope
alloyonclient.cpp:59: error: incomplete type 'AlloyonHandler' cannot be used to
   name a scope
alloyonclient.cpp:63: error: incomplete type 'AlloyonHandler' cannot be used to
   name a scope
alloyonclient.cpp:64: error: incomplete type 'AlloyonHandler' cannot be used to
   name a scope
alloyonclient.cpp:65: error: incomplete type 'AlloyonHandler' cannot be used to
   name a scope
alloyonclient.cpp:67: error: incomplete type 'AlloyonHandler' cannot be used to
   name a scope
alloyonclient.cpp:68: error: incomplete type 'AlloyonHandler' cannot be used to
   name a scope
alloyonclient.cpp:68: error: incomplete type 'AlloyonHandler' cannot be used to
   name a scope
alloyonclient.cpp:69: error: incomplete type 'AlloyonHandler' cannot be used to
   name a scope
alloyonclient.cpp:69: error: incomplete type 'AlloyonHandler' cannot be used to
   name a scope
alloyonclient.cpp:70: error: incomplete type 'AlloyonHandler' cannot be used to
   name a scope
alloyonclient.cpp:70: error: incomplete type 'AlloyonHandler' cannot be used to
   name a scope
alloyonclient.cpp:71: error: incomplete type 'AlloyonHandler' cannot be used to
   name a scope
alloyonclient.cpp:71: error: incomplete type 'AlloyonHandler' cannot be used to
   name a scope
alloyonclient.cpp:79: error: `isPreview' undeclared (first use this function)
alloyonclient.cpp:103: error: `options' undeclared (first use this function)
alloyonclient.cpp:103: error: `addButtons' undeclared (first use this function)
alloyonclient.cpp: At global scope:
alloyonclient.cpp:112: error: invalid use of undefined type `class
   AlloyonClient'
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp: In member function `bool
   AlloyonClient::eventFilter(QObject*, QEvent*)':
alloyonclient.cpp:128: error: `processMousePressEvent' undeclared (first use
   this function)
alloyonclient.cpp: At global scope:
alloyonclient.cpp:140: error: invalid use of undefined type `class
   AlloyonClient'
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp: In member function `void
   AlloyonClient::addButtons(QBoxLayout*, const QString&)':
alloyonclient.cpp:151: error: `connect' undeclared (first use this function)
alloyonclient.cpp:158: error: `isOnAllDesktops' undeclared (first use this
   function)
alloyonclient.cpp:165: error: `providesContextHelp' undeclared (first use this
   function)
alloyonclient.cpp:173: error: `isMinimizable' undeclared (first use this
   function)
alloyonclient.cpp:181: error: `isMaximizable' undeclared (first use this
   function)
alloyonclient.cpp:183: error: `maximizeMode' undeclared (first use this
   function)
alloyonclient.cpp:183: error: `MaximizeRestore' undeclared (first use this
   function)
alloyonclient.cpp:189: error: `isCloseable' undeclared (first use this
   function)
alloyonclient.cpp:197: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp: At global scope:
alloyonclient.cpp:204: error: invalid use of undefined type `class
   AlloyonClient'
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp: In member function `void
   AlloyonClient::paintEvent(QPaintEvent*)':
alloyonclient.cpp:205: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:207: error: `isActive' undeclared (first use this function)
alloyonclient.cpp:211: error: `ColorTitleBar' undeclared (first use this
   function)
alloyonclient.cpp:228: error: `caption' undeclared (first use this function)
alloyonclient.cpp:229: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:236: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:238: error: `AlignLeft' undeclared (first use this function)
alloyonclient.cpp:238: error: `AlignHCenter' undeclared (first use this
   function)
alloyonclient.cpp:238: error: `AlignCenter' undeclared (first use this
   function)
alloyonclient.cpp:248: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:250: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:250: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:253: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:253: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:257: error: `ColorFont' undeclared (first use this function)
alloyonclient.cpp:267: error: `MaximizeFull' undeclared (first use this
   function)
alloyonclient.cpp:362: error: `isResizable' undeclared (first use this
   function)
alloyonclient.cpp: At global scope:
alloyonclient.cpp:398: error: invalid use of undefined type `class
   AlloyonClient'
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp:403: error: invalid use of undefined type `class
   AlloyonClient'
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp: In member function `void
   AlloyonClient::resizeEvent(QResizeEvent*)':
alloyonclient.cpp:404: error: `WStaticContents' undeclared (first use this
   function)
alloyonclient.cpp: At global scope:
alloyonclient.cpp:413: error: invalid use of undefined type `class
   AlloyonClient'
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp:418: error: invalid use of undefined type `class
   AlloyonClient'
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp: In member function `void
   AlloyonClient::mouseDoubleClickEvent(QMouseEvent*)':
alloyonclient.cpp:421: error: `titlebarDblClickOperation' undeclared (first use
   this function)
alloyonclient.cpp: At global scope:
alloyonclient.cpp:425: error: syntax error before `::' token
alloyonclient.cpp:428: error: syntax error before `=' token
alloyonclient.cpp:437: error: syntax error before `if'
alloyonclient.cpp:497: error: extra qualification `AlloyonClient::' on member `
   iconChange' ignored
alloyonclient.cpp:497: error: invalid use of undefined type `class
   AlloyonClient'
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp:505: error: extra qualification `AlloyonClient::' on member `
   activeChange' ignored
alloyonclient.cpp:505: error: invalid use of undefined type `class
   AlloyonClient'
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp:513: error: extra qualification `AlloyonClient::' on member `
   maximizeChange' ignored
alloyonclient.cpp:513: error: invalid use of undefined type `class
   AlloyonClient'
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp:523: error: extra qualification `AlloyonClient::' on member `
   desktopChange' ignored
alloyonclient.cpp:523: error: invalid use of undefined type `class
   AlloyonClient'
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp:532: error: extra qualification `AlloyonClient::' on member `
   maxButtonPressed' ignored
alloyonclient.cpp:532: error: invalid use of undefined type `class
   AlloyonClient'
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp: In member function `void AlloyonClient::maxButtonPressed()':
alloyonclient.cpp:537: error: `MidButton' undeclared (first use this function)
alloyonclient.cpp:538: error: `MaximizeVertical' undeclared (first use this
   function)
alloyonclient.cpp:538: error: `maximize' undeclared (first use this function)
alloyonclient.cpp:540: error: `RightButton' undeclared (first use this
   function)
alloyonclient.cpp:541: error: `MaximizeHorizontal' undeclared (first use this
   function)
alloyonclient.cpp: At global scope:
alloyonclient.cpp:550: error: extra qualification `AlloyonClient::' on member `
   menuButtonPressed' ignored
alloyonclient.cpp:550: error: invalid use of undefined type `class
   AlloyonClient'
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp: In member function `void AlloyonClient::menuButtonPressed()
   ':
alloyonclient.cpp:554: error: `showWindowMenu' undeclared (first use this
   function)
alloyonclient.cpp: At global scope:
alloyonclient.cpp:560: error: extra qualification `AlloyonClient::' on member `
   minimumSize' ignored
alloyonclient.cpp:560: error: invalid use of undefined type `class
   AlloyonClient'
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp:565: error: extra qualification `AlloyonClient::' on member `
   borders' ignored
alloyonclient.cpp:565: error: invalid use of undefined type `class
   AlloyonClient'
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp: In member function `void AlloyonClient::borders(int&, int&,
   int&, int&) const':
alloyonclient.cpp:574: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:574: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:574: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:580: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:580: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:580: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:588: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:591: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:592: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:592: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:593: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:593: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:596: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:597: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:602: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:603: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:605: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:608: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:609: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:609: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:610: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:610: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:612: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:613: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:614: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:619: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:620: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:622: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:625: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:626: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:626: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:627: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:627: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:629: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp:630: error: incomplete type 'AlloyonHandler' cannot be used
   to name a scope
alloyonclient.cpp: At global scope:
alloyonclient.cpp:638: error: extra qualification `AlloyonClient::' on member `
   reset' ignored
alloyonclient.cpp:638: error: invalid use of undefined type `class
   AlloyonClient'
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp:643: error: extra qualification `AlloyonClient::' on member `
   resize' ignored
alloyonclient.cpp:643: error: invalid use of undefined type `class
   AlloyonClient'
alloyonbutton.h:20: error: forward declaration of `class AlloyonClient'
alloyonclient.cpp:652: error: syntax error before `*' token
In file included from /usr/lib/qt3/include/qmetaobject.h:42,
                 from alloyonclient.moc:12,
                 from alloyonclient.cpp:658:
/usr/lib/qt3/include/qconnection.h: In destructor `
   AlloyonClient::QConnection::~QConnection()':
/usr/lib/qt3/include/qconnection.h:49: error: syntax error before `;' token
In file included from alloyonclient.moc:12,
                 from alloyonclient.cpp:658:
/usr/lib/qt3/include/qmetaobject.h:55: error: declaration of `struct
   AlloyonClient::QConnection::QMetaData' in `
   AlloyonClient::QConnection::~QConnection()' which does not enclose `class
   AlloyonClient::QConnection'
/usr/lib/qt3/include/qmetaobject.h:55: confused by earlier errors, bailing out
make[3]: *** [alloyonclient.lo] Error 1
make[3]: Leaving directory `/home/alexjh/Desktop/alloyon-0.2/alloyonclient'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/alexjh/Desktop/alloyon-0.2/alloyonclient'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/alexjh/Desktop/alloyon-0.2'
make: *** [all] Error 2
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 06:03 AM
Errors compiling boombastic Linux - Newbie 7 08-04-2004 04:09 PM
Compiling 2.6.7 gets errors !! td0l2 Linux - Newbie 4 06-29-2004 11:59 PM
QT compiling errors slackwarefan Slackware 1 03-01-2004 08:45 PM
Errors compiling 2.6.0 plisken Linux - General 3 10-10-2003 06:12 PM


All times are GMT -5. The time now is 04:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration