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)?



  • Thank you for reply.
    Anyway we use a window version of Qt, this doesn't mean that this version can be compiled under windows?
    The compiler we use is minGW, which come with the QT SDK package.



  • Are you including QtDBus in your project under windows? DBus isn't supported on windows at this time


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.