Bug#524944: libqt4-dev: #include <QTcpServer> fails with QT_NO_DEBUG_OUTPUT defined
Package: libqt4-dev
Version: 4.5.0-2
Severity: normal
daniel@frobozz:/tmp$ cat qtnet-test.cc
#include <QTcpServer>
daniel@frobozz:/tmp$ g++ -c -DQT_NO_DEBUG_OUTPUT -I/usr/include/qt4 -
I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtNetwork
-c qtnet-test.cc
In file included from /usr/include/qt4/QtNetwork/qtcpserver.h:47,
from /usr/include/qt4/QtNetwork/QTcpServer:1,
from qtnet-test.cc:1:
/usr/include/qt4/QtNetwork/qhostaddress.h:127: error: expected ‘,’ or ‘...’
before ‘<’ token
/usr/include/qt4/QtNetwork/qhostaddress.h:127: error: ISO C++ forbids
declaration of ‘QPair’ with no type
/usr/include/qt4/QtNetwork/qhostaddress.h:129: error: ISO C++ forbids
declaration of ‘QPair’ with no type
/usr/include/qt4/QtNetwork/qhostaddress.h:129: error: expected ‘;’ before ‘<’
token
--
Daniel Schepler
Reply to: