Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. #include <stddef.h> compiler error
Forum Update on Monday, May 27th 2025

#include <stddef.h> compiler error

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 3 Posters 8.9k 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.
  • cmessineoC Offline
    cmessineoC Offline
    cmessineo
    wrote on last edited by
    #1

    Hi All, I'm new to Qt, I installed the newest sdk and tried creating a very basic Qt widget application -> Qt Gui application. Basically just a hello world type app. I get an error in gglobal.h file:

    C:\QtSDK\Desktop\Qt\4.8.0\msvc2010\include\QtCore\qglobal.h:45: error: C1083: Cannot open include file: 'stddef.h': No such file or directory

    I'm running Qt on Windows 7 box as an administrator. Thanks for your time and help.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      thisisbhaskar
      wrote on last edited by
      #2

      Do you have MSVC installed in your machine???

      1 Reply Last reply
      0
      • cmessineoC Offline
        cmessineoC Offline
        cmessineo
        wrote on last edited by
        #3

        Thanks for the reply Vijay. No I don't have MSVC installed. I take it you are referring to Microsoft Visual C++. What version do I need?

        1 Reply Last reply
        0
        • T Offline
          T Offline
          thisisbhaskar
          wrote on last edited by
          #4

          mm.. as per your its says it should be "msvc2010" or the best thing is to use MinGW compiler as it comes pre-installed with Qt SDK. From your project properties select MinGW under Qt Version tab, and select MinGW under Edit build configuration also.

          This should work..

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Coderx
            wrote on last edited by
            #5

            I have the same problem.
            there are 3 header files which qtcreator cant fine .
            <comdef.h> <atlbase.h> and <stddef.h>.
            which <stddef.h> is defined and used in "qglobal.h"
            I had Vs 2013 and Vs 2010 installed when i installed QtCreator 5.2
            then i found out that in order for the QtCreator to compile, i need to install VS2012 as well! so i did , this time the compilition is halted with those headers being not found!
            How can i solve this issue ?
            Regards in advance.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Coderx
              wrote on last edited by
              #6

              Any help? i am really having lots of problems.
              i re installed qt 5.2 msvc2012 . apart from my former problem, now if i try to create a default application, it just fails!! with the compiler error :
              bq. F:\ms\Qt5.2.0\5.2.0\msvc2012\include\QtCore\qglobal.h:46: error: C1083: Cannot open include file: 'stddef.h': No such file or directory

              What is going on? please someone help!

              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