Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Apr 2000 23:25:33 -0700
From:      Arun Sharma <adsharma@sharmas.dhs.org>
To:        freebsd-questions@freebsd.org
Subject:   g++ ignoring -L and -l flags
Message-ID:  <20000402232533.A884@sharmas.dhs.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000402232533.A884>