AndresBarbaRoja
23rd May 2011, 14:00
Good day,
I'm having a problem with the library of a card that defines "HANDLE" as int. Then in Qt, when I use QApplication on Linux I get a compilation problem because in qapplication.h on line 130 and 131 it says:
#if defined(Q_WS_X11)
QApplication(Display* dpy, Qt::HANDLE visual = 0, Qt::HANDLE cmap = 0, int = QT_VERSION);
QApplication(Display *dpy, int &argc, char **argv, Qt::HANDLE visual = 0, Qt::HANDLE cmap= 0, int = QT_VERSION);
#endif
and my guess is that in those lines handle is replaced by int.
The thing is that i do not know how to fix this.
If I modify qapplication in order to undefine HANDLE,will I guess I will have problems in any computer running the regular qt. Could anyone suggest something I could do?
Thanks in advance
I'm having a problem with the library of a card that defines "HANDLE" as int. Then in Qt, when I use QApplication on Linux I get a compilation problem because in qapplication.h on line 130 and 131 it says:
#if defined(Q_WS_X11)
QApplication(Display* dpy, Qt::HANDLE visual = 0, Qt::HANDLE cmap = 0, int = QT_VERSION);
QApplication(Display *dpy, int &argc, char **argv, Qt::HANDLE visual = 0, Qt::HANDLE cmap= 0, int = QT_VERSION);
#endif
and my guess is that in those lines handle is replaced by int.
The thing is that i do not know how to fix this.
If I modify qapplication in order to undefine HANDLE,will I guess I will have problems in any computer running the regular qt. Could anyone suggest something I could do?
Thanks in advance