Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

MSVC 2015 - Missing cstddef



  • 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;
    


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


  • Lifetime Qt Champion

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



  • No, I'm not.



  • 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?



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

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


  • Lifetime Qt Champion

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



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



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




Log in to reply