patrik08
26th October 2006, 13:41
the same application i can compile on qt4.1..... run ok! on qt4.2 i found this error....
from gui_main_final.cpp:9:
E:/qt4/include/QtNetwork/../../src/network/qnetworkinterface.h:97: error: expect
ed `,' or `...' before "struct"
mingw32-make[2]: *** [release\gui_main_final.o] Error 1
mingw32-make[2]: Leaving directory `E:/v7/CMS_SRC_5'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `E:/v7/CMS_SRC_5'
mingw32-make: *** [sub-CMS_SRC_5-make_default] Error 2
E:\qt4\src\network\qnetworkinterface.h
InterfaceFlags flags() const; /* line 80 */
QString hardwareAddress() const;
QList<QNetworkAddressEntry> addressEntries() const;
static QNetworkInterface interfaceFromName(const QString &name);
static QNetworkInterface interfaceFromIndex(int index);
static QList<QNetworkInterface> allInterfaces();
static QList<QHostAddress> allAddresses();
private:
friend class QNetworkInterfacePrivate;
QSharedDataPointer<QNetworkInterfacePrivate> d;
};
Q_DECLARE_OPERATORS_FOR_FLAGS(QNetworkInterface::I nterfaceFlags)
#ifndef QT_NO_DEBUG_STREAM
Q_NETWORK_EXPORT QDebug operator<<(QDebug debug, const QNetworkInterface &interface); /* line 97 */
#endif
QT_END_HEADER
#endif
waht i must chanche to compile .... ?
Note: i use -static on window ... same as http://wiki.qtcentre.org/index.php?title=Building_static_applications
from gui_main_final.cpp:9:
E:/qt4/include/QtNetwork/../../src/network/qnetworkinterface.h:97: error: expect
ed `,' or `...' before "struct"
mingw32-make[2]: *** [release\gui_main_final.o] Error 1
mingw32-make[2]: Leaving directory `E:/v7/CMS_SRC_5'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `E:/v7/CMS_SRC_5'
mingw32-make: *** [sub-CMS_SRC_5-make_default] Error 2
E:\qt4\src\network\qnetworkinterface.h
InterfaceFlags flags() const; /* line 80 */
QString hardwareAddress() const;
QList<QNetworkAddressEntry> addressEntries() const;
static QNetworkInterface interfaceFromName(const QString &name);
static QNetworkInterface interfaceFromIndex(int index);
static QList<QNetworkInterface> allInterfaces();
static QList<QHostAddress> allAddresses();
private:
friend class QNetworkInterfacePrivate;
QSharedDataPointer<QNetworkInterfacePrivate> d;
};
Q_DECLARE_OPERATORS_FOR_FLAGS(QNetworkInterface::I nterfaceFlags)
#ifndef QT_NO_DEBUG_STREAM
Q_NETWORK_EXPORT QDebug operator<<(QDebug debug, const QNetworkInterface &interface); /* line 97 */
#endif
QT_END_HEADER
#endif
waht i must chanche to compile .... ?
Note: i use -static on window ... same as http://wiki.qtcentre.org/index.php?title=Building_static_applications