Entweder bin ich blind, aber ich seh den Fehler in der timerdclient.cpp nicht. Für mich ist da alles in Ordnung, aber ich bin eh nicht der C++-Kenner, deshalb frage ich ja hier.
Siehe Listing unten.
/bin/sh ../../../libtool --mode=compile powerpc-tuxbox-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/home/tuxbox/tuxbox-cvs/driver/include -I../../../mczap/libevent -I../../../zapit -O2 -g3 -mcpu=823 -c timerdclient.cpp
powerpc-tuxbox-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/home/tuxbox/tuxbox-cvs/driver/include -I../../../mczap/libevent -I../../../zapit -O2 -g3 -mcpu=823 -Wp,-MD,.deps/timerdclient.pp -c timerdclient.cpp -fPIC -DPIC -o timerdclient.lo
In file included from timerdclient.h:46,
from timerdclient.cpp:26:
timerdMsg.h:56: parse error before `;' token
timerdMsg.h:57: ISO C++ forbids declaration of `CMD_VCR_START' with no type
timerdMsg.h:57: ISO C++ forbids initialization of member `CMD_VCR_START'
timerdMsg.h:57: making `CMD_VCR_START' static
timerdMsg.h:57: ISO C++ forbids in-class initialization of non-const static
member `CMD_VCR_START'
timerdMsg.h:58: ISO C++ forbids declaration of `CMD_VCR_STOP' with no type
timerdMsg.h:58: ISO C++ forbids initialization of member `CMD_VCR_STOP'
timerdMsg.h:58: making `CMD_VCR_STOP' static
timerdMsg.h:58: ISO C++ forbids in-class initialization of non-const static
member `CMD_VCR_STOP'
timerdMsg.h:59: ISO C++ forbids declaration of `CMD_VCR_PAUSE' with no type
timerdMsg.h:59: ISO C++ forbids initialization of member `CMD_VCR_PAUSE'
timerdMsg.h:59: making `CMD_VCR_PAUSE' static
timerdMsg.h:59: ISO C++ forbids in-class initialization of non-const static
member `CMD_VCR_PAUSE'
timerdMsg.h:60: ISO C++ forbids declaration of `CMD_VCR_RESUME' with no type
timerdMsg.h:60: ISO C++ forbids initialization of member `CMD_VCR_RESUME'
timerdMsg.h:60: making `CMD_VCR_RESUME' static
timerdMsg.h:60: ISO C++ forbids in-class initialization of non-const static
member `CMD_VCR_RESUME'
timerdMsg.h:160: parse error before `}' token
In file included from timerdclient.cpp:26:
timerdclient.h:93: `TimerList' is not a member of type `CTimerd'
timerdclient.h:93: `timerlist' was not declared in this scope
timerdclient.h:93: invalid data member initialization
timerdclient.h:93: (use `=' to initialize static data members)
timerdclient.h:93: variable or field `getTimerList' declared void
timerdclient.h:94: `responseGetTimer' is not a member of type `CTimerd'
timerdclient.h:94: `timer' was not declared in this scope
timerdclient.h:94: parse error before `)' token
timerdclient.h: In member function `int
CTimerdClient::addStandbyTimerEvent(bool, int, int, int, int)':
timerdclient.h:141: `commandSetStandby' is not a member of type `CTimerd'
timerdclient.h:141: parse error before `;' token
timerdclient.h:142: `standby' undeclared (first use this function)
timerdclient.h:142: (Each undeclared identifier is reported only once for each
function it appears in.)
timerdclient.cpp: In member function `void
CTimerdClient::registerEvent(unsigned int, unsigned int,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
timerdclient.cpp:83: `commandHead' is not a member of type `CTimerd'
timerdclient.cpp:83: parse error before `;' token
timerdclient.cpp:86: `msg' undeclared (first use this function)
timerdclient.cpp:87: `CMD_REGISTEREVENT' is not a member of type `CTimerd'
timerdclient.cpp: In member function `void
CTimerdClient::unRegisterEvent(unsigned int, unsigned int)':
timerdclient.cpp:101: `commandHead' is not a member of type `CTimerd'
timerdclient.cpp:101: parse error before `;' token
timerdclient.cpp:105: `CMD_UNREGISTEREVENT' is not a member of type `CTimerd'
timerdclient.cpp: In member function `int CTimerdClient::getSleeptimerID()':
timerdclient.cpp:135: `commandHead' is not a member of type `CTimerd'
timerdclient.cpp:135: parse error before `;' token
timerdclient.cpp:137: `CMD_GETSLEEPTIMER' is not a member of type `CTimerd'
timerdclient.cpp:140: `responseGetSleeptimer' is not a member of type `CTimerd'
timerdclient.cpp:140: parse error before `;' token
timerdclient.cpp:141: `response' undeclared (first use this function)
timerdclient.cpp:141: `responseGetSleeptimer' is not a member of type `CTimerd'
timerdclient.cpp: In member function `int
CTimerdClient::getSleepTimerRemaining()':
timerdclient.cpp:151: `responseGetTimer' is not a member of type `CTimerd'
timerdclient.cpp:151: parse error before `;' token
timerdclient.cpp:152: `timer' undeclared (first use this function)
timerdclient.cpp: At global scope:
timerdclient.cpp:160: `TimerList' is not a member of type `CTimerd'
timerdclient.cpp:160: `timerlist' was not declared in this scope
timerdclient.cpp:161: `void CTimerdClient::getTimerList' is not a static member
of `class CTimerdClient'
timerdclient.cpp:161: variable `void CTimerdClient::getTimerList' has
initializer but incomplete type
timerdclient.cpp:161: syntax error before `{' token
timerdclient.cpp:163: syntax error before `;' token
timerdclient.cpp:164: syntax error before `.' token
timerdclient.cpp:165: syntax error before `.' token
timerdclient.cpp:167: ISO C++ forbids declaration of `timerd_connect' with no
type
timerdclient.cpp:168: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:168: `int send' redeclared as different kind of symbol
/dbox2/cdk/powerpc-tuxbox-linux-gnu/include/sys/socket.h:132: previous
declaration of `ssize_t send(int, const void*, unsigned int, int)'
timerdclient.cpp:168: initializer list being treated as compound expression
timerdclient.cpp:169: syntax error before `.' token
timerdclient.cpp:170: syntax error before `;' token
timerdclient.cpp:174: syntax error before `.' token
timerdclient.cpp:176: ISO C++ forbids declaration of `timerd_close' with no
type
timerdclient.cpp:177: parse error before `}' token
timerdclient.cpp:179: `responseGetTimer' is not a member of type `CTimerd'
timerdclient.cpp:179: parse error before `)' token
timerdclient.cpp:180: cannot declare member function `CTimerdClient::getTimer'
within `CTimerd'
timerdclient.cpp:180: syntax error before `{' token
timerdclient.cpp:182: syntax error before `.' token
timerdclient.cpp:183: syntax error before `.' token
timerdclient.cpp:185: ISO C++ forbids declaration of `timerd_connect' with no
type
timerdclient.cpp:186: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:186: redefinition of `int send'
timerdclient.cpp:168: `int send' previously defined here
timerdclient.cpp:186: initializer list being treated as compound expression
timerdclient.cpp:187: `timerID' was not declared in this scope
timerdclient.cpp:187: `timerID' was not declared in this scope
timerdclient.cpp:187: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:187: redefinition of `int send'
timerdclient.cpp:186: `int send' previously defined here
timerdclient.cpp:187: initializer list being treated as compound expression
timerdclient.cpp:189: syntax error before `;' token
timerdclient.cpp:190: `responseGetTimer' is not a member of type `CTimerd'
timerdclient.cpp:190: ISO C++ forbids declaration of `receive' with no type
timerdclient.cpp:190: initializer list being treated as compound expression
timerdclient.cpp:191: ISO C++ forbids declaration of `timer' with no type
timerdclient.cpp:191: `int timer' used prior to declaration
timerdclient.cpp:192: ISO C++ forbids declaration of `timerd_close' with no
type
timerdclient.cpp:193: parse error before `}' token
timerdclient.cpp:197: cannot declare member function `CTimerdClient::
modifyTimerEvent' within `CTimerd'
timerdclient.cpp:197: syntax error before `{' token
timerdclient.cpp:200: syntax error before `.' token
timerdclient.cpp:201: syntax error before `.' token
timerdclient.cpp:203: syntax error before `;' token
timerdclient.cpp:204: syntax error before `.' token
timerdclient.cpp:205: syntax error before `.' token
timerdclient.cpp:206: syntax error before `.' token
timerdclient.cpp:207: syntax error before `.' token
timerdclient.cpp:209: ISO C++ forbids declaration of `timerd_connect' with no
type
timerdclient.cpp:210: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:210: redefinition of `int send'
timerdclient.cpp:187: `int send' previously defined here
timerdclient.cpp:210: initializer list being treated as compound expression
timerdclient.cpp:211: `msgModifyTimer' was not declared in this scope
timerdclient.cpp:211: `msgModifyTimer' was not declared in this scope
timerdclient.cpp:211: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:211: redefinition of `int send'
timerdclient.cpp:210: `int send' previously defined here
timerdclient.cpp:211: initializer list being treated as compound expression
timerdclient.cpp:213: ISO C++ forbids declaration of `timerd_close' with no
type
timerdclient.cpp:215: parse error before `}' token
timerdclient.cpp:218: cannot declare member function `CTimerdClient::
rescheduleTimerEvent' within `CTimerd'
timerdclient.cpp:218: syntax error before `{' token
timerdclient.cpp:223: cannot declare member function `CTimerdClient::
rescheduleTimerEvent' within `CTimerd'
timerdclient.cpp:223: syntax error before `{' token
timerdclient.cpp:225: syntax error before `.' token
timerdclient.cpp:226: syntax error before `.' token
timerdclient.cpp:228: syntax error before `;' token
timerdclient.cpp:229: syntax error before `.' token
timerdclient.cpp:230: syntax error before `.' token
timerdclient.cpp:231: syntax error before `.' token
timerdclient.cpp:232: syntax error before `.' token
timerdclient.cpp:234: ISO C++ forbids declaration of `timerd_connect' with no
type
timerdclient.cpp:235: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:235: redefinition of `int send'
timerdclient.cpp:211: `int send' previously defined here
timerdclient.cpp:235: initializer list being treated as compound expression
timerdclient.cpp:236: `msgModifyTimer' was not declared in this scope
timerdclient.cpp:236: `msgModifyTimer' was not declared in this scope
timerdclient.cpp:236: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:236: redefinition of `int send'
timerdclient.cpp:235: `int send' previously defined here
timerdclient.cpp:236: initializer list being treated as compound expression
timerdclient.cpp:238: ISO C++ forbids declaration of `timerd_close' with no
type
timerdclient.cpp:240: parse error before `}' token
timerdclient.cpp:243: cannot declare member function `CTimerdClient::
addTimerEvent' within `CTimerd'
timerdclient.cpp:243: syntax error before `{' token
timerdclient.cpp:246: ISO C++ forbids declaration of `time' with no type
timerdclient.cpp:246: `int time' redeclared as different kind of symbol
/dbox2/cdk/powerpc-tuxbox-linux-gnu/include/time.h:166: previous declaration of
`time_t time(time_t*)'
timerdclient.cpp:246: invalid conversion from `time_t*' to `int'
timerdclient.cpp:249: syntax error before `->' token
timerdclient.cpp:250: syntax error before `->' token
timerdclient.cpp:257: `evType' was not declared in this scope
timerdclient.cpp:257: `data' was not declared in this scope
timerdclient.cpp:257: ISO C++ forbids declaration of `addTimerEvent' with no
type
timerdclient.cpp:257: initializer list being treated as compound expression
timerdclient.cpp:258: parse error before `}' token
timerdclient.cpp:261: cannot declare member function `CTimerdClient::
addTimerEvent' within `CTimerd'
timerdclient.cpp:261: syntax error before `{' token
timerdclient.cpp:263: syntax error before `;' token
timerdclient.cpp:264: syntax error before `.' token
timerdclient.cpp:265: syntax error before `.' token
timerdclient.cpp:268: syntax error before `;' token
timerdclient.cpp:269: syntax error before `.' token
timerdclient.cpp:270: syntax error before `.' token
timerdclient.cpp:271: syntax error before `.' token
timerdclient.cpp:272: syntax error before `.' token
timerdclient.cpp:273: syntax error before `.' token
timerdclient.cpp:276: parse error before `if'
timerdclient.cpp:293: ISO C++ forbids declaration of `timerd_connect' with no
type
timerdclient.cpp:294: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:294: redefinition of `int send'
timerdclient.cpp:236: `int send' previously defined here
timerdclient.cpp:294: initializer list being treated as compound expression
timerdclient.cpp:295: `msgAddTimer' was not declared in this scope
timerdclient.cpp:295: `msgAddTimer' was not declared in this scope
timerdclient.cpp:295: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:295: redefinition of `int send'
timerdclient.cpp:294: `int send' previously defined here
timerdclient.cpp:295: initializer list being treated as compound expression
timerdclient.cpp:296: parse error before `if'
timerdclient.cpp:299: syntax error before `;' token
timerdclient.cpp:300: ISO C++ forbids declaration of `receive' with no type
timerdclient.cpp:300: redefinition of `int receive'
timerdclient.cpp:190: `int receive' previously defined here
timerdclient.cpp:300: initializer list being treated as compound expression
timerdclient.cpp:301: ISO C++ forbids declaration of `timerd_close' with no
type
timerdclient.cpp:303: parse error before `return'
timerdclient.cpp:307: cannot declare member function `CTimerdClient::
removeTimerEvent' within `CTimerd'
timerdclient.cpp:307: syntax error before `{' token
timerdclient.cpp:309: syntax error before `.' token
timerdclient.cpp:310: syntax error before `.' token
timerdclient.cpp:311: syntax error before `;' token
timerdclient.cpp:312: syntax error before `.' token
timerdclient.cpp:314: ISO C++ forbids declaration of `timerd_connect' with no
type
timerdclient.cpp:315: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:315: redefinition of `int send'
timerdclient.cpp:295: `int send' previously defined here
timerdclient.cpp:315: initializer list being treated as compound expression
timerdclient.cpp:316: `msgRemoveTimer' was not declared in this scope
timerdclient.cpp:316: `msgRemoveTimer' was not declared in this scope
timerdclient.cpp:316: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:316: redefinition of `int send'
timerdclient.cpp:315: `int send' previously defined here
timerdclient.cpp:316: initializer list being treated as compound expression
timerdclient.cpp:318: ISO C++ forbids declaration of `timerd_close' with no
type
timerdclient.cpp:319: parse error before `{' token
timerdclient.cpp:324: cannot declare member function `CTimerdClient::
isTimerdAvailable' within `CTimerd'
timerdclient.cpp:324: syntax error before `{' token
timerdclient.cpp:326: syntax error before `.' token
timerdclient.cpp:327: syntax error before `.' token
timerdclient.cpp:328: ISO C++ forbids declaration of `timerd_connect' with no
type
timerdclient.cpp:329: parse error before `try'
timerdclient.cpp:332: syntax error before `;' token
timerdclient.cpp:340: ISO C++ forbids declaration of `timerd_close' with no
type
timerdclient.cpp:341: parse error before `}' token
make[4]: *** [timerdclient.lo] Error 1
make[4]: Leaving directory `/home/tuxbox/tuxbox-cvs/apps/mczap/timerd/clientlib'
make[3]: *** [../mczap/timerd/clientlib/libtimerdclient.la] Error 2
make[3]: Leaving directory `/home/tuxbox/tuxbox-cvs/apps/sections'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/tuxbox/tuxbox-cvs/apps/sections'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tuxbox/tuxbox-cvs/apps'
make: *** [all-recursive-am] Error 2
tuxbox@linux:~/tuxbox-cvs/apps>
Wo soll ich den Fehler in der Datei ausmerzen ???
Entschuldigung, aber jetzt musste ich auch mal das komplette Listing zeigen. Ist ein bischen lang

CU
Rasta12