Compile errors in qdbusconnection.h
-
Hi all,
I compile a project using the latest version of QT SDK, and get erros as below:@
C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:138: error: expected ',' or '...' before 'struct'C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:140: error: expected ',' or '...' before 'struct'
C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:140: error: 'bool QDBusConnection::connect(const QString&, const QString&, const QString&)' cannot be overloaded
C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:138: error: with 'bool QDBusConnection::connect(const QString&, const QString&, const QString&)'
C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:143: error: expected ',' or '...' before 'struct'
C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:143: error: 'bool QDBusConnection::connect(const QString&, const QString&, const QString&)' cannot be overloaded
C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:138: error: with 'bool QDBusConnection::connect(const QString&, const QString&, const QString&)'
C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:147: error: expected ',' or '...' before 'struct'
C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:149: error: expected ',' or '...' before 'struct'
C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:149: error: 'bool QDBusConnection::disconnect(const QString&, const QString&, const QString&)' cannot be overloaded
C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:147: error: with 'bool QDBusConnection::disconnect(const QString&, const QString&, const QString&)'
C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:152: error: expected ',' or '...' before 'struct'
C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:152: error: 'bool QDBusConnection::disconnect(const QString&, const QString&, const QString&)' cannot be overloaded
C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:147: error: with 'bool QDBusConnection::disconnect(const QString&, const QString&, const QString&)'
C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:164: error: expected unqualified-id before 'struct'
C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:164: error: expected ';' before 'struct'
@How can I solve the problem? Thank you
[EDIT: code formatting for output, Volker]
-
Dbus shouldn't be compiled under windows. Are you cross compiling or anything like that? (maybe a different mkspec)?
-
Are you including QtDBus in your project under windows? DBus isn't supported on windows at this time