Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Is Qt 5.0.1 supposed to be compiled with GCC 4.8.0 ?

$
0
0
Hi I tried to compile Qt with MinGW 4.8.0 rev1 from mingwbuilds project. Dependencies compiled fine. (Including OpenSSL, ICU, Freetype, Fontconfig) But Qt itself didn’t. I got some errors when mingw32-make compiles ODBC driver. There are redefined symbols: g++ -c -pipe -fno-keep-inline-dllexport -g -fno-exceptions -frtti -Wall -Wextra -DUNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_ PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I. -I"..\..\..\..\include" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include\QtSql\5.0.1" -I"..\..\..\..\include\QtSql\5.0 .1\QtSql" -I"..\..\..\..\include\QtCore" -I".moc\debug_shared" -I"C:\mingw64\include" -I"..\..\..\..\mkspecs\win32-g++" -o .obj\debug_shared\main.o main.cpp In file included from C:\mingw64\include/sql.h:19:0,                  from ../../../sql/drivers/odbc/qsql_odbc.h:66,                  from main.cpp:44: C:\mingw64\include/sqltypes.h:65:0: warning: "CALLBACK" redefined [enabled by default]  #define CALLBACK  ^ In file included from c:\mingw64\x86_64-w64-mingw32\include\windows.h:69:0,                  from ..\..\..\..\include/QtCore/../../src/corelib/global/qt_windows.h:66,                  from ..\..\..\..\include/QtCore/qt_windows.h:1,                  from ../../../sql/drivers/odbc/qsql_odbc.h:49,                  from main.cpp:44: c:\mingw64\x86_64-w64-mingw32\include\windef.h:81:0: note: this is the location of the previous definition  #define CALLBACK __stdcall  ^ In file included from C:\mingw64\include/sql.h:19:0,                  from ../../../sql/drivers/odbc/qsql_odbc.h:66,                  from main.cpp:44: C:\mingw64\include/sqltypes.h:87:29: error: conflicting declaration 'typedef short int TCHAR'  typedef signed short        TCHAR;                              ^ In file included from c:\mingw64\x86_64-w64-mingw32\include\windef.h:139:0,                  from c:\mingw64\x86_64-w64-mingw32\include\windows.h:69,                  from ..\..\..\..\include/QtCore/../../src/corelib/global/qt_windows.h:66,                  from ..\..\..\..\include/QtCore/qt_windows.h:1,                  from ../../../sql/drivers/odbc/qsql_odbc.h:49,                  from main.cpp:44: c:\mingw64\x86_64-w64-mingw32\include\winnt.h:218:17: error: 'TCHAR' has a previous declaration as 'typedef WCHAR TCHAR'    typedef WCHAR TCHAR, *PTCHAR;                  ^ In file included from C:\mingw64\include/sql.h:19:0,                  from ../../../sql/drivers/odbc/qsql_odbc.h:66,                  from main.cpp:44: C:\mingw64\include/sqltypes.h:105:26: error: conflicting declaration 'typedef short unsigned int WCHAR'  typedef unsigned short   WCHAR;                           ^ Is there any plan to add patches for 4.8.0 or maintain compatibility with the new compiler in 5.0.2 or 5.1.0 ?

Viewing all articles
Browse latest Browse all 18427

Trending Articles