Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved error in qglobal.h

    General and Desktop
    os x
    1
    2
    2602
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • clogwog
      clogwog last edited by clogwog

      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>
      #endif
      

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

      1 Reply Last reply Reply Quote 0
      • clogwog
        clogwog last edited by clogwog

        nevermind, i saw someone had a different error but adding

        QMAKE_MAC_SDK = macosx10.11

        in the pro file also fixes this.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post