Date: Tue, 2 Mar 2004 11:19:06 -0800 From: Charles McManis <cmcmanis@mcmanis.com> To: freebsd-questions@freebsd.org Cc: cmcmanis@mcmanis.com Subject: Can one compile khello.cc ? Message-ID: <200403021119.06516.cmcmanis@mcmanis.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403021119.06516.cmcmanis>