[Interest] Several issues compiling Qt 4.8.4 with mingw-w64 4.8.1, possible related to "-std=gnu++11"

Thiago Macieira thiago.macieira at intel.com
Mon Apr 15 23:52:59 CEST 2013


On segunda-feira, 15 de abril de 2013 14.43.22, K. Frank wrote:
>    ..\3rdparty\javascriptcore\JavaScriptCore/wtf/HashTable.h:264:83:
> error: 'template<class T, class U> void QTWTF::swap(std::pair<_T1,
> _T2>&, std::pair<_T1, _T2>&)' conflicts with previous using
> declaration 'template<class _T1, class _T2> void
> std::swap(std::pair<_T1, _T2>&, std::pair<_T1, _T2>&)'
> template<typename T, typename U> inline void swap(pair<T, U>& a,
> pair<T, U>& b)

JavaScriptCore does not compile with C++11 (at least, not the versions inside 
Qt 4.8).

That means you need to disable C++11 when compiling both QtScript and 
QtWebKit.

The buildsystem for those *does* remove -std=c++0x and -std=gnu++0x, so if you 
use the old switches, Qt should compile.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130415/16512083/attachment.sig>


More information about the Interest mailing list