[Interest] Q_ATOMIC_INT64_IS_SUPPORTED: Qt Compile errors on macOS

Thiago Macieira thiago.macieira at intel.com
Fri Jun 21 19:32:22 CEST 2019


On Friday, 21 June 2019 10:00:45 PDT Patrick Stinson wrote:
> thread/qatomic.cpp:1624:4: error: "Q_ATOMIC_INT64_IS_SUPPORTED must be
> defined on a 64-bit platform"

The macro is defined by this block in qatomic_cxx11.h:

#if QT_CONFIG(std_atomic64)
template<> struct QAtomicOpsSupport<8> { enum { IsSupported = 1 }; };
#  define Q_ATOMIC_INT64_IS_SUPPORTED

So the question is whether QT_FEATURE_std_atomic64 is defined to 1 or not. Can 
you open the src/corelib/qtcore-config.h in the build dir and see if it is 
there?

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel System Software Products





More information about the Interest mailing list