Hi,

I'im using QT 5.8 msvc2015_64. I'm trying to compile my project that using the QSql module. But i have a enum type redefinition error in the qtsqlGlobal.h (a qt header file).

Qt Code:
  1. #ifndef QTSQLGLOBAL_H
  2. #define QTSQLGLOBAL_H
  3.  
  4. #include <QtCore/qglobal.h>
  5.  
  6. QT_BEGIN_NAMESPACE
  7.  
  8. #ifndef QT_STATIC
  9. # if defined(QT_BUILD_SQL_LIB)
  10. # define Q_SQL_EXPORT Q_DECL_EXPORT
  11. # else
  12. # define Q_SQL_EXPORT Q_DECL_IMPORT
  13. # endif
  14. #else
  15. # define Q_SQL_EXPORT
  16. #endif
  17.  
  18. namespace QSql
  19. {
  20. enum Location
  21. {
  22. BeforeFirstRow = -1,
  23. AfterLastRow = -2
  24. };
  25.  
  26. enum ParamTypeFlag
  27. {
  28. In = 0x00000001,
  29. Out = 0x00000002,
  30. InOut = In | Out,
  31. Binary = 0x00000004
  32. };
  33. Q_DECLARE_FLAGS(ParamType, ParamTypeFlag)
  34.  
  35. enum TableType
  36. {
  37. Tables = 0x01,
  38. SystemTables = 0x02,
  39. Views = 0x04,
  40. AllTables = 0xff
  41. };
  42.  
  43. enum NumericalPrecisionPolicy
  44. {
  45. LowPrecisionInt32 = 0x01,
  46. LowPrecisionInt64 = 0x02,
  47. LowPrecisionDouble = 0x04,
  48.  
  49. HighPrecision = 0
  50. };
  51. }
  52.  
  53. Q_DECLARE_OPERATORS_FOR_FLAGS(QSql::ParamType)
  54.  
  55. QT_END_NAMESPACE
  56.  
  57. #endif // QSQL_H
To copy to clipboard, switch view to plain text mode 

I have compiled successfully my project with Qt msvc2012_64. But when i do it with QT 5.8 msvc2015_64 i had this error.

Any help please.