Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. MSVC 2015 - Missing cstddef

MSVC 2015 - Missing cstddef

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
9 Posts 3 Posters 9.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.
  • P Offline
    P Offline
    Peppy
    wrote on last edited by
    #1

    Hello guys, does anyone know what should I do with missing cstddef file? I've already reinstalled Visual Studio and Qt, but the error is back.

    17:03:49: Running steps for project scheduleview...
    17:03:49: Configuration unchanged, skipping qmake step.
    17:03:49: Starting: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe" 
    	"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe" -f Makefile.Debug
    	cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -Zi -MDd -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -EHsc /Fddebug\scheduleview.pdb -DUNICODE -DWIN32 -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\scheduleview -I. -I..\..\Qt\Qt5.7.0\5.7\msvc2015\include -I..\..\Qt\Qt5.7.0\5.7\msvc2015\include\QtWidgets -I..\..\Qt\Qt5.7.0\5.7\msvc2015\include\QtGui -I..\..\Qt\Qt5.7.0\5.7\msvc2015\include\QtANGLE -I..\..\Qt\Qt5.7.0\5.7\msvc2015\include\QtCore -Idebug -I..\..\Qt\Qt5.7.0\5.7\msvc2015\mkspecs\win32-msvc2015 -Fodebug\ @C:\Users\PETERB~1\AppData\Local\Temp\nm49BD.tmp
    main.cpp
    C:\Qt\Qt5.7.0\5.7\msvc2015\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
    widget.cpp
    C:\Qt\Qt5.7.0\5.7\msvc2015\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
    qxtscheduleheaderwidget.cpp
    C:\Qt\Qt5.7.0\5.7\msvc2015\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
    qxtscheduleitemdelegate.cpp
    C:\Qt\Qt5.7.0\5.7\msvc2015\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
    qxtscheduleview_p.cpp
    C:\Qt\Qt5.7.0\5.7\msvc2015\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
    qxtscheduleview.cpp
    C:\Qt\Qt5.7.0\5.7\msvc2015\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
    qxtscheduleviewheadermodel_p.cpp
    C:\Qt\Qt5.7.0\5.7\msvc2015\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
    qxtglobal.cpp
    c:\qt\qt5.7.0\5.7\msvc2015\include\qtcore\qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
    qxtstyleoptionscheduleviewitem.cpp
    C:\Qt\Qt5.7.0\5.7\msvc2015\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
    Generating Code...
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe"' : return code '0x2'
    Stop.
    17:03:52: The process "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe" exited with code 2.
    Error while building/deploying project scheduleview (kit: Desktop Qt 5.7.0 MSVC2015 32bit)
    When executing step "Make"
    17:03:52: Elapsed time: 00:03.
    

    PATH variable (system-wide)

    C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\actionnet\CMake\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Git\cmd;
    
    jsulmJ 1 Reply Last reply
    0
    • P Offline
      P Offline
      Peppy
      wrote on last edited by
      #8

      So the 'easy' solution is to nuke AppData\Roaming\QtCreator folder and reinstall Qt (QtCreator?)...

      1 Reply Last reply
      0
      • P Peppy

        Hello guys, does anyone know what should I do with missing cstddef file? I've already reinstalled Visual Studio and Qt, but the error is back.

        17:03:49: Running steps for project scheduleview...
        17:03:49: Configuration unchanged, skipping qmake step.
        17:03:49: Starting: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe" 
        	"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe" -f Makefile.Debug
        	cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -Zi -MDd -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -EHsc /Fddebug\scheduleview.pdb -DUNICODE -DWIN32 -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\scheduleview -I. -I..\..\Qt\Qt5.7.0\5.7\msvc2015\include -I..\..\Qt\Qt5.7.0\5.7\msvc2015\include\QtWidgets -I..\..\Qt\Qt5.7.0\5.7\msvc2015\include\QtGui -I..\..\Qt\Qt5.7.0\5.7\msvc2015\include\QtANGLE -I..\..\Qt\Qt5.7.0\5.7\msvc2015\include\QtCore -Idebug -I..\..\Qt\Qt5.7.0\5.7\msvc2015\mkspecs\win32-msvc2015 -Fodebug\ @C:\Users\PETERB~1\AppData\Local\Temp\nm49BD.tmp
        main.cpp
        C:\Qt\Qt5.7.0\5.7\msvc2015\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
        widget.cpp
        C:\Qt\Qt5.7.0\5.7\msvc2015\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
        qxtscheduleheaderwidget.cpp
        C:\Qt\Qt5.7.0\5.7\msvc2015\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
        qxtscheduleitemdelegate.cpp
        C:\Qt\Qt5.7.0\5.7\msvc2015\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
        qxtscheduleview_p.cpp
        C:\Qt\Qt5.7.0\5.7\msvc2015\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
        qxtscheduleview.cpp
        C:\Qt\Qt5.7.0\5.7\msvc2015\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
        qxtscheduleviewheadermodel_p.cpp
        C:\Qt\Qt5.7.0\5.7\msvc2015\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
        qxtglobal.cpp
        c:\qt\qt5.7.0\5.7\msvc2015\include\qtcore\qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
        qxtstyleoptionscheduleviewitem.cpp
        C:\Qt\Qt5.7.0\5.7\msvc2015\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
        Generating Code...
        NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.EXE"' : return code '0x2'
        Stop.
        NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe"' : return code '0x2'
        Stop.
        17:03:52: The process "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe" exited with code 2.
        Error while building/deploying project scheduleview (kit: Desktop Qt 5.7.0 MSVC2015 32bit)
        When executing step "Make"
        17:03:52: Elapsed time: 00:03.
        

        PATH variable (system-wide)

        C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\actionnet\CMake\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Git\cmd;
        
        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @Peppy Are you able to compile a simple non-Qt C++ application?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • P Offline
          P Offline
          Peppy
          wrote on last edited by
          #3

          No, I'm not.

          1 Reply Last reply
          0
          • 6thC6 Offline
            6thC6 Offline
            6thC
            wrote on last edited by 6thC
            #4

            I see your kit is: Desktop Qt 5.7.0 MSVC2015 32bit - Are you running 32bit Windows?
            I'm 64bit and the only (windows) ones to select by auto-detect are:

            • Desktop Qt 5.7.0 MSVC2013 64bit
            • Desktop Qt 5.7.0 MSVC2015_64bit

            I just see you have ${env:ProgramFiles(x86)} which apparently is not defined on a 32-bit machine (I think) - mabye check the kits are actually there?

            P 1 Reply Last reply
            0
            • 6thC6 6thC

              I see your kit is: Desktop Qt 5.7.0 MSVC2015 32bit - Are you running 32bit Windows?
              I'm 64bit and the only (windows) ones to select by auto-detect are:

              • Desktop Qt 5.7.0 MSVC2013 64bit
              • Desktop Qt 5.7.0 MSVC2015_64bit

              I just see you have ${env:ProgramFiles(x86)} which apparently is not defined on a 32-bit machine (I think) - mabye check the kits are actually there?

              P Offline
              P Offline
              Peppy
              wrote on last edited by Peppy
              #5

              @6thC I'm running 64-bit Windows 10. Where should be those kits located?

              I get it reinstalled second time... we will see.

              jsulmJ 6thC6 2 Replies Last reply
              0
              • P Peppy

                @6thC I'm running 64-bit Windows 10. Where should be those kits located?

                I get it reinstalled second time... we will see.

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #6

                @Peppy No need for 64bit Windows to build 32bit applications. The Kits are configured in QtCreator. You apparently have a Kit for 32bit Qt: "Error while building/deploying project scheduleview (kit: Desktop Qt 5.7.0 MSVC2015 32bit)". Go to "Tools/Options.../Build & Run/Kits", check whether there are any warnings or errors.
                Can you build a simple C++ application in VisualStudio?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                P 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @Peppy No need for 64bit Windows to build 32bit applications. The Kits are configured in QtCreator. You apparently have a Kit for 32bit Qt: "Error while building/deploying project scheduleview (kit: Desktop Qt 5.7.0 MSVC2015 32bit)". Go to "Tools/Options.../Build & Run/Kits", check whether there are any warnings or errors.
                  Can you build a simple C++ application in VisualStudio?

                  P Offline
                  P Offline
                  Peppy
                  wrote on last edited by Peppy
                  #7

                  @jsulm said in MSVC 2015 - Missing cstddef:

                  @Peppy No need for 64bit Windows to build 32bit applications. The Kits are configured in QtCreator. You apparently have a Kit for 32bit Qt: "Error while building/deploying project scheduleview (kit: Desktop Qt 5.7.0 MSVC2015 32bit)". Go to "Tools/Options.../Build & Run/Kits", check whether there are any warnings or errors.
                  Can you build a simple C++ application in VisualStudio?

                  Some users I write application for, don't have 64bit system yet. So, no. I don't have any errors, but it's telling me, it does not have a debugger. I can build in Visual Studio but can not build in Qt Creator.

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    Peppy
                    wrote on last edited by
                    #8

                    So the 'easy' solution is to nuke AppData\Roaming\QtCreator folder and reinstall Qt (QtCreator?)...

                    1 Reply Last reply
                    0
                    • P Peppy

                      @6thC I'm running 64-bit Windows 10. Where should be those kits located?

                      I get it reinstalled second time... we will see.

                      6thC6 Offline
                      6thC6 Offline
                      6thC
                      wrote on last edited by
                      #9

                      @Peppy I got mine from:
                      https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk

                      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