From owner-freebsd-questions Sun Apr 2 23:25:27 2000 Delivered-To: freebsd-questions@freebsd.org Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by hub.freebsd.org (Postfix) with ESMTP id 5588337B8F8 for ; Sun, 2 Apr 2000 23:25:25 -0700 (PDT) (envelope-from adsharma@sharmas.dhs.org) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id XAA00901 for freebsd-questions@freebsd.org; Sun, 2 Apr 2000 23:25:33 -0700 Date: Sun, 2 Apr 2000 23:25:33 -0700 From: Arun Sharma To: freebsd-questions@freebsd.org Subject: g++ ignoring -L and -l flags Message-ID: <20000402232533.A884@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm trying to build KDE2 libs and am running into this strange situation: $ g++ -v -O2 -fno-exceptions -fno-rtti -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long -fno-builtin -frtti -o libDCOP.la.closure libDCOP_la_closure.lo dcopclient.lo dcopobject.lo dcopstub.lo dcopref.lo -L/usr/X11R6/lib -L/home/adsharma/kde/qt-copy/lib -L/home/adsharma/kde/lib -L/usr/local/lib -lSM -lICE -lqt -lXext -lX11 | head -100 Using builtin specs. gcc version 2.95.2 19991024 (release) /usr/libexec/elf/ld -m elf_i386 -dynamic-linker /usr/libexec/ld-elf.so.1 -o libDCOP.la.closure /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/libexec/elf -L/usr/libexec -L/usr/lib libDCOP_la_closure.lo dcopclient.lo dcopobject.lo dcopstub.lo dcopref.lo -lstdc++ -lm /usr/lib/libgcc.a -lc /usr/lib/libgcc.a /usr/lib/crtend.o /usr/lib/crtn.o As you can see above, g++ did not pass -lqt to the ld command line. This results in all the qt symbols being undefined. What am I missing ? -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message