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

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

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
17 Posts 9 Posters 49.1k Views 3 Watching
  • 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on 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 last edited by
      #7

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

      1 Reply Last reply
      0
      • mzimmersM Offline
        mzimmersM Offline
        mzimmers
        wrote on 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
        2
        • mzimmersM mzimmers

          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 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.

          mzimmersM 1 Reply Last reply
          0
          • Y Yars

            @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.

            mzimmersM Offline
            mzimmersM Offline
            mzimmers
            wrote on last edited by
            #10

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

            1 Reply Last reply
            1
            • mzimmersM mzimmers

              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 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.

              mzimmersM 1 Reply Last reply
              0
              • T TianHe

                @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.

                mzimmersM Offline
                mzimmersM Offline
                mzimmers
                wrote on 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
                1
                • John FosterJ Offline
                  John FosterJ Offline
                  John Foster
                  wrote on 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
                  • mzimmersM mzimmers

                    @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 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 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 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
                        • R Offline
                          R Offline
                          ReArtu
                          wrote on 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