<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Is Qt 5.0.1 supposed to be compiled with GCC 4.8.0 ?]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">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:</p>
<p dir="auto">@<br />
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_<br />
PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I. -I"........\include" -I"........\include\QtSql" -I"........\include\QtSql\5.0.1" -I"........\include\QtSql\5.0<br />
.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<br />
In file included from C:\mingw64\include/sql.h:19:0,<br />
from ../../../sql/drivers/odbc/qsql_odbc.h:66,<br />
from main.cpp:44:<br />
C:\mingw64\include/sqltypes.h:65:0: warning: "CALLBACK" redefined [enabled by default]<br />
#define CALLBACK<br />
^<br />
In file included from c:\mingw64\x86_64-w64-mingw32\include\windows.h:69:0,<br />
from ........\include/QtCore/../../src/corelib/global/qt_windows.h:66,<br />
from ........\include/QtCore/qt_windows.h:1,<br />
from ../../../sql/drivers/odbc/qsql_odbc.h:49,<br />
from main.cpp:44:<br />
c:\mingw64\x86_64-w64-mingw32\include\windef.h:81:0: note: this is the location of the previous definition<br />
#define CALLBACK __stdcall<br />
^<br />
In file included from C:\mingw64\include/sql.h:19:0,<br />
from ../../../sql/drivers/odbc/qsql_odbc.h:66,<br />
from main.cpp:44:<br />
C:\mingw64\include/sqltypes.h:87:29: error: conflicting declaration 'typedef short int TCHAR'<br />
typedef signed short        TCHAR;<br />
^<br />
In file included from c:\mingw64\x86_64-w64-mingw32\include\windef.h:139:0,<br />
from c:\mingw64\x86_64-w64-mingw32\include\windows.h:69,<br />
from ........\include/QtCore/../../src/corelib/global/qt_windows.h:66,<br />
from ........\include/QtCore/qt_windows.h:1,<br />
from ../../../sql/drivers/odbc/qsql_odbc.h:49,<br />
from main.cpp:44:<br />
c:\mingw64\x86_64-w64-mingw32\include\winnt.h:218:17: error: 'TCHAR' has a previous declaration as 'typedef WCHAR TCHAR'<br />
typedef WCHAR TCHAR, *PTCHAR;<br />
^<br />
In file included from C:\mingw64\include/sql.h:19:0,<br />
from ../../../sql/drivers/odbc/qsql_odbc.h:66,<br />
from main.cpp:44:<br />
C:\mingw64\include/sqltypes.h:105:26: error: conflicting declaration 'typedef short unsigned int WCHAR'<br />
typedef unsigned short   WCHAR;<br />
^<br />
@</p>
<p dir="auto">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 ?</p>
]]></description><link>https://forum.qt.io/topic/25783/is-qt-5-0-1-supposed-to-be-compiled-with-gcc-4-8-0</link><generator>RSS for Node</generator><lastBuildDate>Thu, 22 Oct 2026 18:25:04 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/25783.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Apr 2013 13:09:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Is Qt 5.0.1 supposed to be compiled with GCC 4.8.0 ? on Wed, 28 Aug 2013 14:12:16 GMT]]></title><description><![CDATA[<p dir="auto">A bit late, but since I stumbled across this post ... Qt 4.8 isn't compiled with -c++11 option by default, that's why it's not affected.</p>
]]></description><link>https://forum.qt.io/post/175609</link><guid isPermaLink="true">https://forum.qt.io/post/175609</guid><dc:creator><![CDATA[kkoehne]]></dc:creator><pubDate>Wed, 28 Aug 2013 14:12:16 GMT</pubDate></item><item><title><![CDATA[Reply to Is Qt 5.0.1 supposed to be compiled with GCC 4.8.0 ? on Fri, 05 Apr 2013 10:13:05 GMT]]></title><description><![CDATA[<p dir="auto">AFAIK the -c++11 option has problems even with 4.7.x</p>
<p dir="auto">After all, 4.8 compiles Qt 5.0.1 and everything looks fine.</p>
]]></description><link>https://forum.qt.io/post/172646</link><guid isPermaLink="true">https://forum.qt.io/post/172646</guid><dc:creator><![CDATA[soroush]]></dc:creator><pubDate>Fri, 05 Apr 2013 10:13:05 GMT</pubDate></item><item><title><![CDATA[Reply to Is Qt 5.0.1 supposed to be compiled with GCC 4.8.0 ? on Wed, 03 Apr 2013 12:58:14 GMT]]></title><description><![CDATA[<p dir="auto">Someone reported that compilation will succeed on Linux if C++11 support is disabled, but not if you enable C++11: <a href="http://qt-project.org/forums/viewthread/26362/" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/forums/viewthread/26362/</a></p>
<p dir="auto">Again, I'm unfamiliar with the internals. If you want to know the details, ask on the Development mailing list: <a href="http://lists.qt-project.org/mailman/listinfo/development" target="_blank" rel="noopener noreferrer nofollow ugc">http://lists.qt-project.org/mailman/listinfo/development</a></p>
]]></description><link>https://forum.qt.io/post/172552</link><guid isPermaLink="true">https://forum.qt.io/post/172552</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Wed, 03 Apr 2013 12:58:14 GMT</pubDate></item><item><title><![CDATA[Reply to Is Qt 5.0.1 supposed to be compiled with GCC 4.8.0 ? on Tue, 02 Apr 2013 15:10:11 GMT]]></title><description><![CDATA[<p dir="auto">So why I am able to compile Qt 5 with 4.8 ? And why it works ?<br />
I suppose if there is some compiler-level issues, then should be failures in binary generation, else if there is some ABI-level issue, it will compile but won't work under certain circumstances. Later one is more much more bigger trouble I think. (correct me if I'm wrong)</p>
<p dir="auto">I will run auto test suits provided withing source, and post results here</p>
]]></description><link>https://forum.qt.io/post/172476</link><guid isPermaLink="true">https://forum.qt.io/post/172476</guid><dc:creator><![CDATA[soroush]]></dc:creator><pubDate>Tue, 02 Apr 2013 15:10:11 GMT</pubDate></item><item><title><![CDATA[Reply to Is Qt 5.0.1 supposed to be compiled with GCC 4.8.0 ? on Tue, 02 Apr 2013 14:46:19 GMT]]></title><description><![CDATA[<p dir="auto">I'm not sure of the details -- it's something to do with how the compiler handles template specialization.</p>
<p dir="auto">This patch allowed Qt 5 to be compiled with GCC 4.8: <a href="https://codereview.qt-project.org/#change,48831" target="_blank" rel="noopener noreferrer nofollow ugc">https://codereview.qt-project.org/#change,48831</a> It arrived too late to make it into Qt 5.0.2, but it will be in Qt 5.1</p>
]]></description><link>https://forum.qt.io/post/172472</link><guid isPermaLink="true">https://forum.qt.io/post/172472</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Tue, 02 Apr 2013 14:46:19 GMT</pubDate></item><item><title><![CDATA[Reply to Is Qt 5.0.1 supposed to be compiled with GCC 4.8.0 ? on Tue, 02 Apr 2013 12:38:43 GMT]]></title><description><![CDATA[<p dir="auto">I would like to know what is wrong with GCC 4.8 that makes Qt incompatible with it ? I just compiled Qt with 4.8 and it looks fine.</p>
<p dir="auto">It would be nice if Qt has a automated test suite for framework itself...</p>
]]></description><link>https://forum.qt.io/post/172455</link><guid isPermaLink="true">https://forum.qt.io/post/172455</guid><dc:creator><![CDATA[soroush]]></dc:creator><pubDate>Tue, 02 Apr 2013 12:38:43 GMT</pubDate></item><item><title><![CDATA[Reply to Is Qt 5.0.1 supposed to be compiled with GCC 4.8.0 ? on Mon, 01 Apr 2013 14:38:59 GMT]]></title><description><![CDATA[<p dir="auto">Qt 5.0.1 is older than GCC 4.8, so it was obviously not released with GCC 4.8 compatibility in mind. Some issues with GCC 4.8 have been found: <a href="http://lists.qt-project.org/pipermail/development/2013-March/010587.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://lists.qt-project.org/pipermail/development/2013-March/010587.html</a></p>
]]></description><link>https://forum.qt.io/post/172338</link><guid isPermaLink="true">https://forum.qt.io/post/172338</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Mon, 01 Apr 2013 14:38:59 GMT</pubDate></item><item><title><![CDATA[Reply to Is Qt 5.0.1 supposed to be compiled with GCC 4.8.0 ? on Mon, 01 Apr 2013 13:17:48 GMT]]></title><description><![CDATA[<p dir="auto">I just noticed that conflicts are relared to headers of unixODBC. Is unixODBC required for compiling Qt in Windows with MinGW? I think it's necessary for PSQL...</p>
]]></description><link>https://forum.qt.io/post/172333</link><guid isPermaLink="true">https://forum.qt.io/post/172333</guid><dc:creator><![CDATA[soroush]]></dc:creator><pubDate>Mon, 01 Apr 2013 13:17:48 GMT</pubDate></item></channel></rss>