Important: Please read the Qt Code of Conduct -

error in qglobal.h

  • After finding the following error, i removed and re-installed the latest Qt environment (OSx) from scratch and i'm still getting :

    /Users/user/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qglobal.h:39:12: fatal error: 
          'cstddef' file not found
    #  include <cstddef>

    when compiling a qml project.

    line 39 of qglobal.h looks like

    #ifdef __cplusplus
    #  include <cstddef>

    so i'm wondering if the extra space in the #include directive is what is causing it ? any tips where i can investigate further ?

  • nevermind, i saw someone had a different error but adding

    QMAKE_MAC_SDK = macosx10.11

    in the pro file also fixes this.

Log in to reply