Loggytronic Forum

VOMP => VOMP General / MVP => Topic started by: davep on October 31, 2005, 18:32:27

Title: Compilation failure (GCC 4?)
Post by: davep on October 31, 2005, 18:32:27
Trying today to compile the vompserver plugin for the first time since upgrading this box to Mandriva 2006 (which uses GCC4) I get this:

make[1]: Entering directory `/dave/DVB/DVB/vdr-1.3.34/PLUGINS/src/vompserver'
g++ -O2 -Wall -Woverloaded-virtual -Werror -c -DPLUGIN_NAME_I18N='"vompserver"' -I../../../include -I../../../../DVB/include -Iremux -Ilibdvbmpeg -o vompserver.o vompserver.c
cc1plus: warnings being treated as errors
thread.h:28: warning: 'class Thread' has virtual functions but non-virtual destructor
make[1]: *** [vompserver.o] Error 1
make[1]: Leaving directory `/dave/DVB/DVB/vdr-1.3.34/PLUGINS/src/vompserver'
make: *** [plugins] Error 2

Is this a GCC4-ism or have I messed up somewhere?
Title: Re: Compilation failure (GCC 4?)
Post by: Chris on October 31, 2005, 20:12:00
It's a gcc 4 thing. There is even any constructor at all in that file, but it seems it wants one!

You can either wait for sourceforge to update the file or add this into thread.h

    virtual ~Thread() {};

under the line

  public:
Title: Re: Compilation failure (GCC 4?)
Post by: davep on October 31, 2005, 20:30:51
That fixed it. Thanks!