[Thread Prev][Thread Next]   >Date Index >Thread Index

[wmx] Re: Problems building wmx

eklirmr - Thu Feb 12 14:14:46 2004

Hi,

I had problems compiling wmx under GCC 3.3.1.  

c++ -c -g -O2 -I/usr/X11R6/include Border.C
c++ -c -g -O2 -I/usr/X11R6/include Buttons.C
Buttons.C:187:8: warning: extra tokens at end of #endif directive
Buttons.C:193:8: warning: extra tokens at end of #endif directive
Buttons.C:199:8: warning: extra tokens at end of #endif directive
c++ -c -g -O2 -I/usr/X11R6/include Channel.C
c++ -c -g -O2 -I/usr/X11R6/include Client.C
c++ -c -g -O2 -I/usr/X11R6/include Config.C
c++ -c -g -O2 -I/usr/X11R6/include Events.C
c++ -c -g -O2 -I/usr/X11R6/include Main.C
c++ -c -g -O2 -I/usr/X11R6/include Manager.C
c++ -c -g -O2 -I/usr/X11R6/include Menu.C
Menu.C:625: error: default argument given for parameter 3 of `
   CommandMenu::CommandMenu(WindowManager*, XEvent*, char*)'
Menu.h:92: error: after previous specification in `
   CommandMenu::CommandMenu(WindowManager*, XEvent*, char*)'
make: *** [Menu.o] Error 1


Simon Geard kindly sent me a patch.

>>
You're in luck - that 'default argument' error is one of the fairly
common problems with older code running under gcc3, and I was bored
enough to download the wmx source and try fixing it. With the attached
patch, it compiled fine on my machine with gcc 3.3.1 (it also fixes the
warnings in Buttons.C).

Feel free to pass the patch on to the maintainers of the program, if
it is actually maintained...

Simon.
>>

So I'm passing it on - it works.

Paul

Attachment: wmx-6-gcc3.patch
Description: Binary data


Next: