Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Qt 5.0.1 build failure on linux with Gcc-4.8.0 and c++11 turned on.

$
0
0
Hello, I’m trying to build Qt-5.0.1 on 64bit linux with GCC-4.8.0 enabling c++11. Compilation is failing with bunch of errors. kernel/qtimerinfo_unix.cpp:98:30: error: redeclaration ‘constexpr T qAbs(const T&) [with T = timeval]’ differs in ‘constexpr’ timeval qAbs(const timeval &t) ^ In file included from ../../include/QtCore/qglobal.h:1:0, from global/qt_pch.h:58: ../../include/QtCore/../../src/corelib/global/qglobal.h:483:27: error: from previous declaration ‘constexpr T qAbs(const T&) [with T = timeval]’ Q_DECL_CONSTEXPR inline T qAbs(const T &t) { return t >= 0 ? t : -t; } ^ kernel/qtimerinfo_unix.cpp: In function ‘constexpr T qAbs(const T&) [with T = timeval]’: kernel/qtimerinfo_unix.cpp:109:1: error: body of constexpr function ‘constexpr T qAbs(const T&) [with T = timeval]’ not a return-statement } ^ … and so on Compilation is fine when c++11 is turned off. What am I missing here ? Thanks, Surya

Viewing all articles
Browse latest Browse all 2113

Trending Articles