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
- [wmx] Re: Problems building wmx, eklirmr
- Re: [wmx] Re: Problems building wmx, Sven Oliver Moll
- [wmx] Problems running wmx on XFree 4.4, Sven Oliver Moll
- Re: [wmx] Problems running wmx on XFree 4.4, Sven Oliver Moll
- Re: [wmx] Problems running wmx on XFree 4.4, Chris Cannam