From owner-freebsd-questions@FreeBSD.ORG Tue Mar 2 11:15:47 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED43F16A4CE for ; Tue, 2 Mar 2004 11:15:47 -0800 (PST) Received: from www.mcmanis.com (www.mcmanis.com [66.125.189.29]) by mx1.FreeBSD.org (Postfix) with SMTP id A1B9B43D1F for ; Tue, 2 Mar 2004 11:15:47 -0800 (PST) (envelope-from cmcmanis@mcmanis.com) Received: (qmail 29664 invoked from network); 2 Mar 2004 19:26:01 -0000 Received: from nat-198-95-226-231.netapp.com (HELO ddp.hq.netapp.com) (198.95.226.231) by www.mcmanis.com with SMTP; 2 Mar 2004 19:26:01 -0000 From: Charles McManis To: freebsd-questions@freebsd.org Date: Tue, 2 Mar 2004 11:19:06 -0800 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200403021119.06516.cmcmanis@mcmanis.com> cc: cmcmanis@mcmanis.com Subject: Can one compile khello.cc ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2004 19:15:48 -0000 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