Qdbus tools don't compile on windows



  • Hi there and thx for reading and answering if you can.

    If you strive to port a linux project to windows, you may use the qdbus tools such as qdbusxml2cpp
    However the Qt5 versions don't compile on windows, because the file named moc\token.h contains symbols such as THIS or DELETE in the FOR_ALL_TOKENS macro that are already defined in windows headers (winnt.h, etc...)

    Is there already a solution tor sorting out this issue ?



  • you can #undef a few declarations, but some symbols are actually already used as typedef'ed types in windows headers, e.g. CHAR, so the issue remains


Log in to reply
 

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