Am I the only one, who is getting this error?
g++ -O2 -Wall -Woverloaded-virtual -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"sky"' -I../../../include -I../../../../DVB/include sky.c sky.c:58: Fehler: expected class-name vor »{«-Zeichen sky.c:64: Fehler: ISO-C++ verbietet Deklaration von »cTSBuffer« ohne Typ sky.c:64: Fehler: expected `;' vor »*«-Zeichen sky.c:69: Fehler: »cPidHandle« wurde nicht deklariert sky.c:69: Fehler: ISO-C++ verbietet Deklaration von »Handle« ohne Typ [...]
regards Alfred
Alfred Zastrow wrote:
Am I the only one, who is getting this error?
g++ -O2 -Wall -Woverloaded-virtual -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"sky"' -I../../../include -I../../../../DVB/include sky.c sky.c:58: Fehler: expected class-name vor »{«-Zeichen sky.c:64: Fehler: ISO-C++ verbietet Deklaration von »cTSBuffer« ohne Typ sky.c:64: Fehler: expected `;' vor »*«-Zeichen sky.c:69: Fehler: »cPidHandle« wurde nicht deklariert sky.c:69: Fehler: ISO-C++ verbietet Deklaration von »Handle« ohne Typ
Please add
#include <vdr/device.h>
to sky.c.
Sorry, since I'm not using this plugin any more myself I didn't realize this...
Klaus
Klaus Schmidinger wrote:
Please add
#include <vdr/device.h>
to sky.c.
Sorry, since I'm not using this plugin any more myself I didn't realize this...
Some more plugins broke because of simillar #include problems:
Streamdev-CVS: client/filter.c remux/ts2ps.c remux/ts2es.c
osdpip-0.0.8: osd_info.c
proxy-0.1: proxy.c
In all the above cases, just add #include <vdr/device.h>.
device.h was implicitly included with several headers before, thats why this happens.
Cheers,
Udo
Udo Richter wrote:
Some more plugins broke because of simillar #include problems:
Streamdev-CVS: client/filter.c remux/ts2ps.c remux/ts2es.c
I did not have problems with ts2ps.c and ts2es.c. You might want to check those two files again. Attached are patches for all the plugins I had to fix.. Im sure there are more.
Best Regards, C.
C.Y.M wrote:
Streamdev-CVS: client/filter.c remux/ts2ps.c remux/ts2es.c
I did not have problems with ts2ps.c and ts2es.c. You might want to check those two files again. Attached are patches for all the plugins I had to fix.. Im sure there are more.
remux/ts2es.c: In member function `int cTS2ESRemux::Put(const uchar*, int)': remux/ts2es.c:97: error: `TS_SYNC_BYTE' undeclared (first use this function) remux/ts2ps.c: In member function `int cTS2PSRemux::Put(const uchar*, int)': remux/ts2ps.c:111: error: `TS_SYNC_BYTE' undeclared (first use this function)
TS_SYNC_BYTE is declared in device.h. Maybe some patch or driver also declares it for you.
Cheers,
Udo