PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Fehlermeldung beim compilieren von cpp-programm



luh
15-04-2005, 15:13
hi leuts
ich bekomme beim kompilieren einer programmieruebung von mir immer folgende nachricht

vnh@skapa:~/projects/lview> g++ -g -Wall main.cc
/tmp/ccRRHdY9.o(.text+0x3b): In function `main':
/home/vnh/projects/lview/main.cc:20: undefined reference to `Data::Data[in-charge]()'
/tmp/ccRRHdY9.o(.text+0x4a):/home/vnh/projects/lview/main.cc:21: undefined reference to `Data::getTotalTime()'
/tmp/ccRRHdY9.o(.text+0xa8):/home/vnh/projects/lview/main.cc:24: undefined reference to `processLine(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, Data&)'
/tmp/ccRRHdY9.o(.text+0xfc):/home/vnh/projects/lview/main.cc:26: undefined reference to `minutesInSeconds(int)'
/tmp/ccRRHdY9.o(.text+0x116):/home/vnh/projects/lview/main.cc:26: undefined reference to `hoursInSeconds(int)'
collect2: ld returned 1 exit status

gruss
luh

luh
15-04-2005, 16:03
problem gefunden. (danke zwerg)
Im Makefile musste ich noch $(OBJS) in die kompilier zeile eintragen, und das main.cc rausnehmen.
luh