I am trying to build my project which is using Qt5.10 I am getting an error:
/Users/raulsanchez/Documents/workspace/project/osx/frameworks/QtCore.framework/Headers/qglobal.h:653:72: error: token is not a valid binary operator in a preprocessor subexpression
# if (defined(Q_CC_CLANG) && !defined(Q_CC_INTEL) && !QT_HAS_FEATURE(cxx_exceptions))
I read in some forums that I needed to force c++11 in clang but I have no success with that. I have tried
#include < thread >
and compiler does not complain about it so I assume it is using c++11 version.
My clang version is: Apple LLVM version 9.0.0 (clang-900.0.39.2).
Does anyone know how to fix that?
Aucun commentaire:
Enregistrer un commentaire