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
Forum Updated to NodeBB v4.3 + New Features

error in qglobal.h

Scheduled Pinned Locked Moved Solved General and Desktop
os x
2 Posts 1 Posters 3.0k 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.
  • C Offline
    C Offline
    clogwog
    wrote on 6 Dec 2015, 06:58 last edited by clogwog 12 Jun 2015, 07:08
    #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
    • C Offline
      C Offline
      clogwog
      wrote on 6 Dec 2015, 07:07 last edited by clogwog 12 Jun 2015, 07:09
      #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

      1/2

      6 Dec 2015, 06:58

      • Login

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