Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: ANNOUNCE: vdr-osdteletext-0.2
Marcel Wiesweg wrote:
> > OK, did it, but it still doesn't compile; however, I am using an
> > AIO-patched version of VDR, certainly this makes compilation fail..
> > make: Entering directory
> > `/usr/local/src/VDR/PLUGINS/src/osdteletext-0.2' g++ -O2 -g -Wall
> > -Woverloaded-virtual -c
> > -DPLUGIN_NAME_I18N='"osdteletext"' -I../../../include
> > -I../../../../DVB/include menu.c
> > menu.c:84: warning: `/*' within comment
> > In file included from /usr/include/g++/stl_tree.h:56,
> > from /usr/include/g++/map:31,
> > from menu.c:14:
> > /usr/include/g++/stl_algobase.h:76: redefinition of `template <class
> > _Tp> void swap(_Tp &, _Tp &)'
> > ../../../include/vdr/tools.h:52: `template <class T> void swap(T &, T
> > &)' previously declared here
> > /usr/include/g++/stl_algobase.h:76: redefinition of `void swap(_Tp &,
> > _Tp &)'
> > ../../../include/vdr/tools.h:52: `void swap(T &, T &)' previously
> > defined here
> The problem is triggered by the lines 48-53 in vdr/tools.h. There "swap" is
> redefined, in an ifndef __STL_CONFIG_H, the comment says "in case some plugin
> needs to use the STL". Yes I do use the STL. Obviously on your system this
> define was not defined.
> Does anyone know what this is about?
> Perhaps a problem with gcc or its includes?
The STL also defines a swap() function, which can't coexist with VDR's
definition. So I surrounded it with an #ifdef that checks for a macro that
is defined in the STL header file - or at least used to be defined in the version
on my SuSE 7.3. Maybe the STL guys have changed that in the meantime...
Klaus Schmidinger Phone: +49-8635-6989-10
CadSoft Computer GmbH Fax: +49-8635-6989-40
Hofmark 2 Email: email@example.com
D-84568 Pleiskirchen, Germany URL: www.cadsoft.de
To unsubscribe send a mail to firstname.lastname@example.org with "unsubscribe vdr" as subject.
Main Index |