Michael Sullivan wrote:

> installed.  I've been giving my wife C++ lessons in our spare time, and

And she listens?  Wow.  I can't even get my wife to dust off her flute to
play with me... much less get her interested in computers!

> I ran qmake -project to get a .pro file, then qmake again to generate a
> Makefile.  Then I ran make and got this output:

Don't you have to put the project in the qmake statement?  'qmake foo.pro'

> g++  -o qt helloqt.o    -L/usr/X11R6/lib -lXext -lX11 -lm
                                            ^^^^^^^^^^^^^^^^

Here's your problem.  You should see '-lqt' in there somewhere.

Why is it not there?  I'm not sure.  Do you have several makefiles in the
same directory (makefile, Makefile, GNUMakefile, GNUmakefile, etc).  Maybe
you're up against precedence.  Someone suggested looking through the qmake
generated makefile.  You should see this line:

LIBS     = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -lqt -lXext -lX11 -lm

> I looked over my book's source code and compared it to what I typed in
> and they look identical.  Is this a problem with my source code or a
> problem with the Qt toolkit?  Should I submit this as a bug?

Doubt it.  Check around some more to see if there's something you're doing. 
I couldn't recreate the bug here.  The -lqt shows up in the makefile and
everything builds just fine.

For me:
$ qmake --version
Qmake version: 1.07a (Qt 3.3.3)
Qmake is free software from Trolltech AS.
$ uname -a
Linux orion 2.6.9-gentoo-r13 #3 Mon Jan 3 17:53:22 CST 2005 i686 Intel(R)
Pentium(R) M processor 1.60GHz GenuineIntel GNU/Linux
$ g++ --version
g++ (GCC) 3.3.5  (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ make --version
GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
$

HTH!



-- 
                     G a b r i e l   M .   B e d d i n g f i e l d


--
[email protected] mailing list

Reply via email to