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. c1083: cannot open include file: 'stddef.h':No such file or directory

c1083: cannot open include file: 'stddef.h':No such file or directory

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
17 Posts 9 Posters 47.6k 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.
  • S Offline
    S Offline
    sr547y
    wrote on 25 May 2018, 16:09 last edited by
    #1

    I'm using Qt 5.10.1 and Qt 5.10.1 MSVC2017 64bit qmake.exe has been been Auto-detected as well. and even in toolkit the default is set and no Errors But still facing this error. "c1083: cannot open include file: 'stddef.h':No such file or directory" any insights are appreciated. I'm using VS 2017. Compiler : Microsoft Visual C++ Compiler 15.0(x86_amd64). I'm using 64 bit operating system and WINDDK debugger.

    1 Reply Last reply
    2
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 25 May 2018, 20:29 last edited by
      #2

      Hi and welcome to devnet,

      What kind of project are you trying to build ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sr547y
        wrote on 29 May 2018, 14:25 last edited by
        #3

        I'm trying to build c++ project

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 29 May 2018, 20:15 last edited by
          #4

          That was clear from the start, the question is: What project are you trying to build ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sr547y
            wrote on 30 May 2018, 15:50 last edited by
            #5

            ESRI maps. correct me if I'm wrong. I'm pretty new to QT

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 30 May 2018, 21:03 last edited by
              #6

              Is that project available somewhere ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sr547y
                wrote on 7 Jun 2018, 15:34 last edited by
                #7

                No. I don't have it anywhere. I can post the screen shots though

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mzimmers
                  wrote on 7 Jun 2018, 15:47 last edited by
                  #8

                  Yeah, Microsoft has taken another step forward in complicating their development environment. A couple possibilities:

                  1. try <stddef> instead of <stddef.h> (MS libs)
                  2. make sure your include path contains the "new" location (since VS 2015), which is probably something like C:\Program Files (x86)\Windows Kits\10\Include.
                    more MS nonsense
                  3. as long as you're checking your path, it wouldn't hurt to double check that the actual file is there, now that MS makes you install this separately from VS.
                  Y T 2 Replies Last reply 26 Jun 2018, 18:58
                  2
                  • M mzimmers
                    7 Jun 2018, 15:47

                    Yeah, Microsoft has taken another step forward in complicating their development environment. A couple possibilities:

                    1. try <stddef> instead of <stddef.h> (MS libs)
                    2. make sure your include path contains the "new" location (since VS 2015), which is probably something like C:\Program Files (x86)\Windows Kits\10\Include.
                      more MS nonsense
                    3. as long as you're checking your path, it wouldn't hurt to double check that the actual file is there, now that MS makes you install this separately from VS.
                    Y Offline
                    Y Offline
                    Yars
                    wrote on 26 Jun 2018, 18:58 last edited by
                    #9

                    @mzimmers
                    Hi I am having the same issue as above and tried your options by replacing <stddef.h> with <stddef> but no luck. Can you please make any other suggestions.

                    M 1 Reply Last reply 26 Jun 2018, 19:25
                    0
                    • Y Yars
                      26 Jun 2018, 18:58

                      @mzimmers
                      Hi I am having the same issue as above and tried your options by replacing <stddef.h> with <stddef> but no luck. Can you please make any other suggestions.

                      M Offline
                      M Offline
                      mzimmers
                      wrote on 26 Jun 2018, 19:25 last edited by
                      #10

                      @Yars did you try my #2 and #3 suggestions?

                      1 Reply Last reply
                      1
                      • M mzimmers
                        7 Jun 2018, 15:47

                        Yeah, Microsoft has taken another step forward in complicating their development environment. A couple possibilities:

                        1. try <stddef> instead of <stddef.h> (MS libs)
                        2. make sure your include path contains the "new" location (since VS 2015), which is probably something like C:\Program Files (x86)\Windows Kits\10\Include.
                          more MS nonsense
                        3. as long as you're checking your path, it wouldn't hurt to double check that the actual file is there, now that MS makes you install this separately from VS.
                        T Offline
                        T Offline
                        TianHe
                        wrote on 27 Jun 2018, 07:27 last edited by
                        #11

                        @mzimmers I get into the same trouble and struggle for a long time,could you mind telling me how to make sure my include path contains the "new" location?I am a new user of Qt,tried to find how to set the include path but get nothing.

                        M 1 Reply Last reply 27 Jun 2018, 13:51
                        0
                        • T TianHe
                          27 Jun 2018, 07:27

                          @mzimmers I get into the same trouble and struggle for a long time,could you mind telling me how to make sure my include path contains the "new" location?I am a new user of Qt,tried to find how to set the include path but get nothing.

                          M Offline
                          M Offline
                          mzimmers
                          wrote on 27 Jun 2018, 13:51 last edited by
                          #12

                          @TianHe are you running Windows or Linux (or something else)?

                          The PATH environment variable is maintained by your operating system, not by Qt.

                          PATH

                          The first step is to determine whether you have the stddef.h file on your system. If not, you need to get it. If you do, the next step is verify that its location is included in the PATH variable. We can help you more if you provide this information.

                          T 1 Reply Last reply 29 Jun 2018, 10:00
                          1
                          • John FosterJ Offline
                            John FosterJ Offline
                            John Foster
                            wrote on 28 Jun 2018, 00:36 last edited by
                            #13

                            I had this exact same issue, installing Windows 10 SDK solved it for me.

                            https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk

                            1 Reply Last reply
                            3
                            • M mzimmers
                              27 Jun 2018, 13:51

                              @TianHe are you running Windows or Linux (or something else)?

                              The PATH environment variable is maintained by your operating system, not by Qt.

                              PATH

                              The first step is to determine whether you have the stddef.h file on your system. If not, you need to get it. If you do, the next step is verify that its location is included in the PATH variable. We can help you more if you provide this information.

                              T Offline
                              T Offline
                              TianHe
                              wrote on 29 Jun 2018, 10:00 last edited by
                              #14

                              @mzimmers Thank you very much for replying me,I slove this problem now.I use Windows7 x64 with VisualStudio2017(Windows10 SDK Ver16299) and Windows Driver Kits for VS2017. It seems that WDK(maybe VS 2017) changes the position of some files,and causes this problem.The solution is to add those to pro-file:
                              INCLUDEPATH += "C:/Program Files (x86)/Windows Kits/10/Include/10.0.16299.0/ucrt"
                              LIBS += -L"C:/Program Files (x86)/Windows Kits/10/Lib/10.0.16299.0/ucrt/x64"

                              1 Reply Last reply
                              0
                              • 8Observer88 Offline
                                8Observer88 Offline
                                8Observer8
                                wrote on 25 Oct 2020, 21:51 last edited by 8Observer8
                                #15

                                @John-Foster said in c1083: cannot open include file: 'stddef.h':No such file or directory:

                                I had this exact same issue, installing Windows 10 SDK solved it for me.
                                https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk

                                Yes, installing Windows 10 SDK was solved the error. Thanks!

                                I installed a few package only from SDK and it is enough:

                                Window 10 C++.png

                                1 Reply Last reply
                                1
                                • B Offline
                                  B Offline
                                  Bangash
                                  wrote on 6 Jul 2022, 09:00 last edited by
                                  #16

                                  This problem has been solved by my colleague's suggestion;
                                  Visual Studio Installer > Game Development with C++ > Optional ; Install different "Window 10 SDK(10.0.22000.0) and so on
                                  after that simple test the 'hello world' program.
                                  Good luck indeed for all this queries finder.

                                  1 Reply Last reply
                                  0
                                  • S szumial referenced this topic on 11 Mar 2024, 10:23
                                  • R Offline
                                    R Offline
                                    ReArtu
                                    wrote on 8 Oct 2024, 05:01 last edited by
                                    #17

                                    Just comment the line. It worked for me.

                                    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