-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 12 Feb 2003 17:03:55 -0500, John S. Dey wrote: > I can't get the Qt example "Hello world" to link and I don't know why? > > I clipped the program from the tutorial in the RH8 distribution: > > Then as instructed issued from Xterm commands: > qmake -project > qmake > make > > It looks like I'm compiling but not linking with the follow error: > > [robo1@robo1 qt]$ make > g++ -c -pipe -Wall -W -I/usr/include/fontconfig -I/usr/include/Xft2 -O2 -march=i > 386 -mcpu=i686 -fno-use-cxa-atexit -fno-exceptions -DQT_NO_DEBUG -I/usr/lib/qt3 > -gcc3.2/include -I/usr/lib/qt3-gcc3.2/mkspecs/default -o main.o main.cpp > g++ -o qt main.o -L/usr/X11R6/lib -lXext -lX11 -lm Something's wrong here. You don't link against the Qt library with -lqt. > main.o: In function `main': > main.o(.text+0x30): undefined reference to `QApplication::QApplication[in-charge > ](int&, char**)' - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+S0vf0iMVcrivHFQRAqufAJ0UbqsEmhYgqLIgrmJPM8hwCl/awgCZAULE a8JgyPqwa8s5mpXUFvB0cQA= =mJKR -----END PGP SIGNATURE----- -- Psyche-list mailing list Psyche-list@redhat.com https://listman.redhat.com/mailman/listinfo/psyche-list