Une tonne erreur de compil comme " invalid suffix “ui64” on integer constant"
Hello,
J'ai passé bcp de temps a tenter, sans succès, de résoudre d'innombrables problèmes de compilation. Je travaille sur Win7 64 bit et Qt Creator 2.0.1 (based on Qt 4.7.0 (32 bit) dans About). J'ai besoin de travailler avec les api windows pour utiliser raw input pour la lecture des donnés d'un joystick. J'ai donc installé WDK.
Les erreurs de compil:
"invalid suffix “ui64” on integer constant" dans qendian.h
"#error Must define a target architecture" dans winnt.h
"qulonglong has not been declared" dans qbyte array.h
et bcp +
Je suspecte qu'il y a interférence entre les headers du Wdk et ceux de Qt, Avec Qt, je travaille sur Windows mais j'utilise MinGW et GCC, donc on dirait que ça cause problème. Pas sûr...
OU
Ma plateforme Win7 64 bit. Je dois pt configurer qqch pour faire fonctionner le tout? Ai-je abs besoin de MinGW64? Je developpe sur 64 bit mais je veux que mon programme fonctionne sur 32 et 64 bit.
qmake .pro :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
QT += core gui
TARGET = JoyConfig
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp \
USBThread.cpp \
JoyInput.cpp
HEADERS += mainwindow.h \
JoyInput.h \
USBThread.h \
ftd2xx.h
FORMS += mainwindow.ui
DEFINES+= _WIN32_WINNT 0x0601
DEFINES+= WINVER 0x0601
DEFINES+=_MSC_VER 0x0601
win32:INCLUDEPATH += $$quote(C:/WinDDK/7600.16385.1/inc/api)
win32:INCLUDEPATH += $$quote(C:/WinDDK/7600.16385.1/inc/crt)
win32:LIBS += $$quote(C:/WinDDK/7600.16385.1/lib/win7/i386/User32.lib)
win32:LIBS += $$quote(C:/Users/Dominic/Desktop/RFIC/RFIC_Courant/JeuVideo/ProjetJoystick/JoysConfig/lib/ftd2xx.lib) |
et le code des includes:
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
#include <QThread>
#include <QDebug>
#include <QWaitCondition>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <conio.h>
#include <stdlib.h>
#include <windows.h>
#include <winuser.h>
#include <hidsdi.h> |
Je ne sais plus quoi faire... Merci à l'avance.