[Qt-interest] QtDBus on Windows7 + VS2008

Anes Lihovac anes.lihovac at gmail.com
Sun Feb 6 18:19:35 CET 2011


Hi

I compiled Qt 4.7.1 from sources with VS2008 on Win 7 and enabled 
"dbus-linked". Everything compiled fine. I have a QtDbus4.dll , working 
dbus examples, I can run qdbusxml2cpp etc...

Now I want to compile a project of mine which uses QML+QtDBus.
It compiles and runs perfectly under Linux.

When now compiling the project under Win32, I get errors regarding all 
occurences of the name "interface" coming from the Qt Dbus Headers, like

someFunction(QString interface -> qdbusmessage.h Line 75
or
QString interface() ...
etc.

It looks like the compiler doesn't like it, when something is called 
"interface".
However, why on earth did he then compiled QtDbus4.dll in
the first place or did not fail on the Qt Dbus Examples.

I played around with my .pro File and checked for QT+=dbus or replaced 
it with CONFIG+=qdbus, but the compilation is always the same.

Attached are the error outputs.

Hope someone has an idea.

Thanks and best regards
Anes


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: compile-errors.txt
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110206/a0e8e776/attachment.txt 


More information about the Qt-interest-old mailing list