[Kde-bindings] [Bug 75310] kdebindings: qtjava compile error: undefined reference to `operator!=(QGLFormat const&, QGLFormat const&)'
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Mon Feb 16 07:38:38 UTC 2004
On Sunday 15 February 2004 23:34, info at elmar-baumann.de wrote:
> ------- Additional Comments From info elmar-baumann de 2004-02-16 00:34
> ------- A fix: kdebindings/work/kdebindings-3.1.95/qtjava/javalib/qtjava/cp
> Qt.cpp at line 530: I changed ::operator!=() to !::operator==()
I can't see why the '!=' operator version isn't in your lib - have your
confirmed that the definition is missing from src/opengl/qgl.cpp?
> Now another error:
>
> In file included from Qt.cpp:2,
> from libqtjava_la.all_cpp.cpp:76:
> /usr/opt/kde3.2-rc/include/qnetwork.h: At global scope:
> /usr/opt/kde3.2-rc/include/qnetwork.h:53: parse error before `void'
> In file included from libqtjava_la.all_cpp.cpp:76:
> Qt.cpp: In function `void Java_org_kde_qt_Qt_qInitNetworkProtocols(JNIEnv*,
> _jclass*)':
> Qt.cpp:1459: `::qInitNetworkProtocols' undeclared (first use here)
In qnetwork.h, I have:
#ifndef QT_NO_NETWORK
QM_EXPORT_NETWORK void qInitNetworkProtocols();
#endif
Where QM_EXPORT_NETWORK is giving a parse error in your build, and causing the
compile of Qt.cpp to fail. There seems to be some sort of problem with the Qt
installation on your machine maybe. Or it isn't the same Qt 3.3 that I have
(I updated qt-copy about a couple of weeks ago).
-- Richard
More information about the Kde-bindings
mailing list