Hi
ich komm hier nicht weiter. folgenden Code habe ich in die Klasse cMenuEditTimer eingefügt:
Code
class cMenuEditTimer : public cOsdMenu {
private:
static cRecordings Recordings;
static const char *RecNames[4];
[...]
cMenuEditTimer::cMenuEditTimer(cTimer *Timer, bool New) :cOsdMenu(tr("Edit timer"), 12)
{
RecNames[0]=tr("name1");
RecNames[1]=tr("name2");
RecNames[2]=tr("name3");
RecNames[3]=tr("name4");
int i = 0;
for (cRecording *recording = Recordings.First(); recording; recording = Recordings.Next(recording)) {
RecNames[i] = recording->Name();
i++;
}
[...]
Alles anzeigen
wenn ich nun make, erscheint folgende Fehlermeldung mit der ich nix anfangen kann
Code
mephisto:/usr/local/vdr/VDR # make
g++ -g -O2 -Wall -Woverloaded-virtual -c -DREMOTE_KBD -DREMOTE_ -D_GNU_SOURCE -DVIDEODIR=\"/video\" -DPLUGINDIR=\"./PL
UGINS/lib\" -I../DVB/include menu.c
g++ -g -O2 -Wall -Woverloaded-virtual -rdynamic audio.o channels.o ci.o config.o cutter.o device.o diseqc.o dvbdevice.
o dvbosd.o dvbplayer.o dvbspu.o eit.o eitscan.o font.o i18n.o interface.o keys.o lirc.o menu.o menuitems.o osdbase.o o
sd.o player.o plugin.o rcu.o receiver.o recorder.o recording.o remote.o remux.o ringbuffer.o sources.o spu.o status.o
svdrp.o thread.o timers.o tools.o transfer.o vdr.o videodir.o -ljpeg -lpthread -ldl ./libdtv/libdtv.a -o vdr
menu.o(.text+0x2a17): In function `cMenuEditTimer::cMenuEditTimer[not-in-charge](cTimer*, bool)':
/usr/local/vdr/VDR/tools.h:175: undefined reference to `cMenuEditTimer::Recordings'
menu.o(.text+0x2a46): In function `cMenuEditTimer::cMenuEditTimer[not-in-charge](cTimer*, bool)':
/usr/local/vdr/VDR/recording.h:54: undefined reference to `cMenuEditTimer::RecNames'
menu.o(.text+0x2a70): In function `cMenuEditTimer::cMenuEditTimer[not-in-charge](cTimer*, bool)':
/usr/local/vdr/VDR/menu.c:877: undefined reference to `cMenuEditTimer::RecNames'
menu.o(.text+0x2a7a):/usr/local/vdr/VDR/menu.c:878: undefined reference to `cMenuEditTimer::RecNames'
menu.o(.text+0x2a8e):/usr/local/vdr/VDR/menu.c:879: undefined reference to `cMenuEditTimer::RecNames'
menu.o(.text+0x2aa7):/usr/local/vdr/VDR/menu.c:880: undefined reference to `cMenuEditTimer::RecNames'
menu.o(.text+0x2c85):/usr/local/vdr/VDR/menu.c:889: more undefined references to `cMenuEditTimer::RecNames' follow
menu.o(.text+0x2e57): In function `cMenuEditTimer::cMenuEditTimer[in-charge](cTimer*, bool)':
/usr/local/vdr/VDR/tools.h:175: undefined reference to `cMenuEditTimer::Recordings'
menu.o(.text+0x2e86): In function `cMenuEditTimer::cMenuEditTimer[in-charge](cTimer*, bool)':
/usr/local/vdr/VDR/recording.h:54: undefined reference to `cMenuEditTimer::RecNames'
menu.o(.text+0x2eb0): In function `cMenuEditTimer::cMenuEditTimer[in-charge](cTimer*, bool)':
/usr/local/vdr/VDR/menu.c:877: undefined reference to `cMenuEditTimer::RecNames'
menu.o(.text+0x2eba):/usr/local/vdr/VDR/menu.c:878: undefined reference to `cMenuEditTimer::RecNames'
menu.o(.text+0x2ece):/usr/local/vdr/VDR/menu.c:879: undefined reference to `cMenuEditTimer::RecNames'
menu.o(.text+0x2ee7):/usr/local/vdr/VDR/menu.c:880: undefined reference to `cMenuEditTimer::RecNames'
menu.o(.text+0x30c5):/usr/local/vdr/VDR/menu.c:889: more undefined references to `cMenuEditTimer::RecNames' follow
collect2: ld returned 1 exit status
make: *** [vdr] Fehler 1
mephisto:/usr/local/vdr/VDR #
Alles anzeigen
irgendwie mag er die REcordings und die Recnames nicht, aber WARUM??
Tobias