Undefined reference

anze anze at volja.net
Mon Dec 24 12:02:38 CET 2001


Zivjo!

Prosil bi za pomoc, imam manjse tezave z linkanjem. Napisem en preprost QT 
program (samo ustvari QApplication), ga skompajliram, poskusam linkati... Gcc 
vrne:

$ g++-3.0 -o testqt testqt.o -L/usr/X11R6/lib -lm -lqt
testqt.o: In function `main':
/home/anze/testp/testqt/testqt.c:7: undefined reference to 
`QApplication::QApplication(int&, char**)'
collect2: ld returned 1 exit status

Ce dodam -L/usr/lib (kjer se nahajata libqt.a in libqt.so), ni nic drugace. 
Ce pogledam libqt.a z nm, je noter cel kup stvari s QApplication, zato bi ta 
class moral biti noter. Includal se "qapplication.h" iz 
/usr/share/qt/include. 

Na Internetu nisem nasel nicesar pametnega, v qt dokumentaciji tudi ne... 
Kaksna ideja, kaj delam narobe? 

(Sistem: Linux version 2.4.14 (gcc version 2.95.4 20011006 (Debian 
prerelease)))

Anze



More information about the lugos-prog mailing list