-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 12 February 2004 05:34 am, Anders Johansson wrote:
On Thu, 2004-02-12 at 05:25 -0500, Steven T. Hatton wrote:
cube.o(.text+0x39): In function `Cube::Cube[not-in-charge](QWidget*, char
const*)': : undefined reference to `QGLWidget::QGLWidget[not-in-charge](QWidget*, : char
const*, QGLWidget const*, unsigned)'
Add -lGL and -lGLU to the compiler flags (I assume you have OpenGL installed on your system). Also, for some reason, libqt in the supplementary 3.3 doesn't have any gl functions but the multi threaded version does, I'm not sure if this is intended or just a build error, but to get this to compile, change -lqt to -lqt-mt
Yup!! :) After I removed all the stuff pointing to my efforts at building OpenGL and GLUT, I edited the Makefile so the LIBS looks like this: LIBS = $(SUBLIBS) -L/usr/lib/ -L$(QTDIR)/lib/ -L/usr/X11R6/lib/ -lqt-mt\ - -lXext -lX11 -lm -lGLU -lGL It is rather strange that SuSE seem to have compiled the lib called 'qt' as the non-mt lib. If you list the RPMs, you will see what I mean. Thank you very much. Now let me go to the QT list and share the wealth. STH -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAK2SFH2SF0i7rrGwRAqSfAJ9MXuyqsy2e2G8o0JANAJkY6RYSjwCfY10F MEcbTLq982ojVoDY2bDGeE4= =JJZO -----END PGP SIGNATURE-----