Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. error in qglobal.h
Qt 6.11 is out! See what's new in the release blog

error in qglobal.h

Scheduled Pinned Locked Moved Solved General and Desktop
os x
2 Posts 1 Posters 3.3k Views
  • 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.
  • clogwogC Offline
    clogwogC Offline
    clogwog
    wrote on last edited by clogwog
    #1

    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
    0
    • clogwogC Offline
      clogwogC Offline
      clogwog
      wrote on last edited by clogwog
      #2

      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
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved