Can one compile khello.cc ?

Charles McManis cmcmanis at mcmanis.com
Tue Mar 2 11:15:48 PST 2004


Ok, so this is now officially weird. I decided to try to compile khello.cc 
from the KDE tutorial on my 4.8 system that has never had me attempt to 
upgrade KDE on it. 

When I compile khello.cc, it compiles fine, when I link it I get this:
-----------------------------snip----------------------------------------------------------------
ddp% make
g++ -o khello -R/usr/X11R6/lib -L/usr/local/lib/kde3/ -L/usr/local/lib 
-L/usr/X11R6/lib -lqt-mt -pthread -lkdeui -lkdecore -lXft khello.o
/usr/local/gnu/lib/gcc-lib/i386-unknown-freebsd4.8/3.2.3/../../../../i386-unknown-freebsd4.8/bin/ld: 
warning: libstdc++.so.3, needed by /usr/X11R6/lib/libqt-mt.so, may conflict 
with libstdc++.so.5
/usr/lib/libc.so.4: WARNING!  setkey(3) not present in the system!
/usr/lib/libc.so.4: warning: this program uses gets(), which is unsafe.
/usr/lib/libc.so.4: warning: mktemp() possibly used unsafely; consider using 
mkstemp()
/usr/lib/libc.so.4: WARNING!  des_setkey(3) not present in the system!
/usr/lib/libc.so.4: WARNING!  encrypt(3) not present in the system!
/usr/lib/libc.so.4: warning: tmpnam() possibly used unsafely; consider using 
mkstemp()
/usr/lib/libc.so.4: warning: this program uses f_prealloc(), which is not 
recommended.
/usr/lib/libc.so.4: WARNING!  des_cipher(3) not present in the system!
/usr/lib/libc.so.4: warning: tempnam() possibly used unsafely; consider using 
mkstemp()
khello.o(.text+0x2b): In function `main':
: undefined reference to `QCString::QCString[in-charge](char const*)'
khello.o(.text+0x48): In function `main':
: undefined reference to `KApplication::KApplication[in-charge](int&, char**, 
QCString const&, bool, bool)'
khello.o(.text+0x68): In function `main':
: undefined reference to `QCString::~QCString [in-charge]()'
khello.o(.text+0x8e): In function `main':
: undefined reference to `QCString::~QCString [in-charge]()'
khello.o(.text+0xc2): In function `main':
: undefined reference to `KMainWindow::KMainWindow[in-charge](QWidget*, char 
const*, unsigned)'
khello.o(.text+0x16e): In function `main':
: undefined reference to `QApplication::setMainWidget(QWidget*)'
khello.o(.text+0x19d): In function `main':
: undefined reference to `QApplication::exec()'
khello.o(.text+0x1b1): In function `main':
: undefined reference to `KApplication::~KApplication [in-charge]()'
khello.o(.text+0x1d7): In function `main':
: undefined reference to `KApplication::~KApplication [in-charge]()'
collect2: ld returned 1 exit status
make: *** [khello] Error 1
ddp% 
-----------------------------------------------------------------------------------------
So what am I missing?

--Chuck


More information about the freebsd-questions mailing list