Re: Fehler "undefined reference ... " trotz eingebundener Headerdatei

Philipp Thomas <[email protected]>
Newsgroups gmane.linux.suse.programming
Organization SUSE LINUX AG
Message-ID <[email protected]>
* Udo Gerhards ([email protected]) [20041001 14:40]:

> *g++ -lpcap -lmysqlclient -o nwarp nwarp.o nw_standarts.o nw_database.o 
> nw_device.o nw_dev_storage.o -L/usr/lib/ -L/usr/lib/qt3/lib/ 
> - -L/usr/X11R6/lib/ -lqt-mt -lXext -lX11 -lm -lpthread 
> *nw_device.o(.text+0x7a): In function `nw_device::nw_device[not-in-charge]
> (char*, char*, char*, nw_sniff_count, int)': 
> *: undefined reference to `nw_queue<nw_sniff_host>::nw_queue[in-charge](int)' 

> Soweit ich das jetzt verstehe, ist in dem File die Deklaration der 
> Templateklasse "nw_queue<nw_sniff_host>" nicht bekannt,

Dann hätte sich der Compiler schon viel früher beschwert. Hier wurde ein
Konstruktor nicht instanziert, aber warum das so ist, könnte man nur anhand
des/der Header(s) und ggfs. des ihn/sie verwendenden Codes beurteilen.

Philipp

-- 
Philipp Thomas <[email protected]>
SUSE LINUX AG, Maxfeldstr. 5, D-90409 Nuremberg, Germany

-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    [email protected]
Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.