Qt-OpenGL.....

Harald Fernengel harry at kdevelop.org
Thu Oct 24 16:13:18 BST 2002


Hi,

On Thursday 24 October 2002 16:36, you wrote:
> Hi,
> I've a problem with the building of a Qt-OpenGL
> program (Qt 3.x + KDevelop 2.1); it's the example
> supplied with Qt library ($QTDIR/doc/examples/opengl/glbox).
> I've created a C++ project, i've defined the paths for the
> include files and library and, finally, i've checked the libqt,
> libGL and libGLU libraries. When i go to build the project,
> the msg window shows the following errors:
>
> - /root/cpp-projects/OGBox-0.1/glbox.cpp:32: undefined reference to 'GLBox
> virtual table'
>  - /root/cpp-projects/OGBox-0.1/glbox.cpp:32: undefined reference to
> 'GLBox::QPaintDevice virtual table'
>  - glbox.o: In function 'GLBox::~GLBox(void)':
>  - /root/cpp-projects/OGBox-0.1/glbox.cpp:44: undefined reference to 'GLBox
> virtual table'
> - /root/cpp-projects/OGBox-0.1/glbox.cpp:44: undefined reference to
> 'GLBox::QPaintDevice virtual table'
>
> Why ?!!
>
> Thank

crappy gcc error message, you probably forgot to include the moc file or 
forgot the Q_OBJECT macro.

Best regards,
Harry

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list