Boost logo

Boost-Build :

From: Felix E. Klee (felix.klee.jamboost_at_[hidden])
Date: 2003-01-22 17:06:12


On Wednesday 22 January 2003 08:03 am, Vladimir Prus wrote:
> > BTW, I'll test it with QT once the QT stuff works fine with gcc.
>
> Hopefully you're able to do it now.

Just tried it. Unfortunately, it doesn't work:
bc++ -v -q -ebin/kylix/debug/main-target-hello/hello
bin/kylix/debug/main-target-hello/main.o
bin/kylix/debug/main-target-hello/hello_world_widget.o
bin/kylix/debug/main-target-hello/moc_hello_world_widget.o

Error: Unresolved external 'QApplication::~QApplication()' referenced from
bin/kylix/debug/main-target-hello/main.o

Obviously, the linker command line is incomplete: the -L option and the QT
library are missing. Here is something that works:
bc++ -v -q -L$QTDIR/lib -ebin/kylix/debug/main-target-hello/hello
bin/kylix/debug/main-target-hello/main.o
bin/kylix/debug/main-target-hello/hello_world_widget.o
bin/kylix/debug/main-target-hello/moc_hello_world_widget.o
libqt.so

As you see, I didn't use "-lqt" because that doesn't work. According to the
bc++ documentation, "-l" does something else:
-lx Pass option x to linker
-l-x Disable option x for linker
So, I don't know if there's a better way to specify libraries. Makefiles
generated by the Kylix IDE actually contain calls to ilink where the
libraries are also specified by their complete file name. As a reminder,
here's an excerpt from a Kylix generated Makefile that I send to you in a
previous email:
ilink \
-Tpd -aa -D"" -x -Gn -v \
-Ltmp:/Net/hubble/Users/felix/local/lib/kylix3//lib/obj \
-L/Net/hubble/Users/felix/local/lib/kylix3//lib:/usr/lib:/lib \
-L/usr/X11R6/lib:/Net/hubble/Users/felix/local/lib/kylix3//bin \
borinitso.o foo.o, libfoo.so,, \
libborcrtl.so libborstl.so libborunwind.so libc.so libm.so libdl.so,, \
foo.res

Felix

-- 
To contact me personally don't reply but send email to 
felix DOT klee AT inka DOT de
 

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk