Mailing List archive

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

[vdr] Re: ANNOUNCE: Softdevice plugin. Use /dev/fb for output



At Dienstag, 25. November 2003 00:49 Michael Buhr wrote:
> Great idea! I tried to compile the plugin (gcc 3.3.2) on my xbox but I
> got some warnings and errors:
> 2 warnings, something like "no newline at end of file". ok, no problem.
> And this:
> -------------------------------------------------------------------------
>--- ----------------
> make[1]: Entering directory
> `/usr/local/src/vdr-1.2.5/PLUGINS/src/softdevice-0.0.1'
> g++ -g -O2 -Wall -Woverloaded-virtual -c
> -DPLUGIN_NAME_I18N='"softdevice"' - I../../../include -I../DVB/include
> -I/usr/local/src/ffmpeg-0.4.8/libavcodec softdevice.c
> softdevice.c:200: error: default argument given for parameter 2 of `bool
>    cSoftDevice::Poll(cPoller&, int)'
> softdevice.c:139: error: after previous specification in `virtual bool
>    cSoftDevice::Poll(cPoller&, int)'
> make[1]: *** [softdevice.o] Error 1
> -------------------------------------------------------------------------
>--- ----------------
> So far I don't have a clue of what went wrong....

It's a common programming fault that older Compilers tolerate. GCC 3.2 does 
NOT.

Just remove any assignments of default values out of the implementation 
(i.e.: in the .h file you may write
bool xyz(int parm = 100);
in the .c[pp] file you must write
bool xyz(int parm) {...}
but not
bool xyz(int parm = 100) {...}
)

Greetings,
Sascha


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index