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

Re: [wmx] Hi

Frank Ch. Eigler - Tue May 13 17:52:02 2003

Hi -

> here a little bit broblem on make....
> 
> c++ -c -g -O2 -I/usr/X11R6/include Menu.C
> Menu.C:625: default argument given for parameter 3 of `
>    CommandMenu::CommandMenu(WindowManager*, XEvent*, char* = 0)'
> Menu.h:92: after previous specification in `
>    CommandMenu::CommandMenu(WindowManager*, XEvent*, char* = 0)'
> [...]

Sure.  In C++, only the declaration should give default arguments.
The definition (in the .C file) should not.

- FChE


Next: