Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved MSVC compiler fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory

    Tools
    1
    1
    1386
    Loading More Posts
    • 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.
    • GoodGuy
      GoodGuy last edited by

      Hi,

      I have a problem with MSVC 2015 compiler. I want to build additional module from source for Qt. After set compiler via :
      c:\Qt\5.13.0\msvc2017_64\bin\qtenv2.bat
      and
      c:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Auxiliary\Build\vcvarsall.bat x86_amd64

      nmake throws error C1083 about finding cstddef file.

      c:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.16.27023\include\cstddef(7): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory

      I've checked the full path and it's there.

      I have MS Visual Studio Express 2017 and Windows 10 SDK. I also tried to make clean instalation of Qt and Visual Studio, with deleted configuration files in AppData.

      Any idea?

      0_1563262536188_msvc_Kit.PNG

      C:\Qt\5.13.0\msvc2017_64\qtopcua\build>nmake
      
      Microsoft (R) Program Maintenance Utility Version 14.16.27032.1
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
              cd src\ && ( if not exist Makefile C:\Qt\5.13.0\msvc2017_64\bin\qmake.exe -o Makefile C:\Qt\5.13.0\msvc2017_64\qtopcua\src\src.pro ) && "c:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.exe" -f Makefile
      
      Microsoft (R) Program Maintenance Utility Version 14.16.27032.1
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
              cd opcua\ && ( if not exist Makefile C:\Qt\5.13.0\msvc2017_64\bin\qmake.exe -o Makefile C:\Qt\5.13.0\msvc2017_64\qtopcua\src\opcua\opcua.pro ) && "c:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.exe" -f Makefile
      Project MESSAGE: perl -w C:\Qt\5.13.0\msvc2017_64\bin\syncqt.pl -module QtOpcUa -version 5.13.1 -outdir C:/Qt/5.13.0/msvc2017_64/qtopcua/build -builddir C:/Qt/5.13.0/msvc2017_64/qtopcua/build C:/Qt/5.13.0/msvc2017_64/qtopcua
      <srcbase> = C:/Qt/5.13.0/msvc2017_64/qtopcua
      <bldbase> = C:/Qt/5.13.0/msvc2017_64/qtopcua/build
      <outbase> = C:/Qt/5.13.0/msvc2017_64/qtopcua/build
      QtOpcUa: created fwd-include header(s) for <srcbase>/src/opcua/ { qopcuaglobal.h (1) }
      QtOpcUa: created fwd-include header(s) for <srcbase>/src/opcua/client/ { qopcuaaddnodeitem.h (2), qopcuaaddreferenceitem.h (2), qopcuaapplicationdescription.h (2), qopcuaapplicationidentity.h (2), qopcuaargument.h (2), qopcuaattributeoperand.h (2), qopcuaauthenticationinformation.h (2), qopcuaaxisinformation.h (2), qopcuabackend_p.h (1), qopcuabinarydataencoding.h (2), qopcuabrowsepathtarget.h (2), qopcuabrowserequest.h (2), qopcuaclient.h (2), qopcuaclient_p.h (1), qopcuaclientimpl_p.h (1), qopcuacomplexnumber.h (2), qopcuacontentfilterelement.h (2), qopcuacontentfilterelementresult.h (2), qopcuadeletereferenceitem.h (2), qopcuadoublecomplexnumber.h (2), qopcuaelementoperand.h (2), qopcuaendpointdescription.h (2), qopcuaerrorstate.h (2), qopcuaeuinformation.h (2), qopcuaeventfilterresult.h (2), qopcuaexpandednodeid.h (2), qopcuaextensionobject.h (2), qopcualiteraloperand.h (2), qopcualocalizedtext.h (2), qopcuamonitoringparameters.h (2), qopcuamonitoringparameters_p.h (1), qopcuamultidimensionalarray.h (2), qopcuanode.h (2), qopcuanode_p.h (1), qopcuanodecreationattributes.h (2), qopcuanodecreationattributes_p.h (1), qopcuanodeids.h (1), qopcuanodeimpl_p.h (1), qopcuapkiconfiguration.h (2), qopcuaqualifiedname.h (2), qopcuarange.h (2), qopcuareaditem.h (2), qopcuareadresult.h (2), qopcuareferencedescription.h (2), qopcuarelativepathelement.h (2), qopcuasimpleattributeoperand.h (2), qopcuatype.h (1), qopcuausertokenpolicy.h (2), qopcuawriteitem.h (2), qopcuawriteresult.h (2), qopcuaxvalue.h (2) }
      QtOpcUa: created fwd-include header(s) for <srcbase>/src/opcua/core/ { qopcuaplugin.h (2), qopcuaprovider.h (2) }
      QtOpcUa: created version header
      QtOpcUa: created master header
      QtOpcUa: created headers.pri file
      
      Microsoft (R) Program Maintenance Utility Version 14.16.27032.1
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
              "c:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.exe" -f Makefile.Release all
      
      Microsoft (R) Program Maintenance Utility Version 14.16.27032.1
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
              cl -c -Yc -Fp.pch\release\Qt5OpcUa_pch.pch -Fo.pch\release\Qt5OpcUa_pch.obj -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -O2 -Zi -MD -std:c++17 -utf-8 /wd4530 /wd4577 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 /Fd.obj\release\Qt5OpcUa.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_OPCUA_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NO_FOREACH -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DNDEBUG -D_WINDLL -IC:\Qt\5.13.0\msvc2017_64\qtopcua\src\opcua -I. -I..\..\include -I..\..\include\QtOpcUa -I..\..\include\QtOpcUa\5.13.1 -I..\..\include\QtOpcUa\5.13.1\QtOpcUa -Itmp -IC:\Qt\5.13.0\msvc2017_64\include\QtCore\5.13.0 -IC:\Qt\5.13.0\msvc2017_64\include\QtCore\5.13.0\QtCore -IC:\Qt\5.13.0\msvc2017_64\include -IC:\Qt\5.13.0\msvc2017_64\include\QtNetwork -IC:\Qt\5.13.0\msvc2017_64\include\QtCore -I.moc\release -IC:\openssl\include -IC:\Utils\postgresql\pgsql\include -IC:\Qt\5.13.0\msvc2017_64\mkspecs\win32-msvc -TP ..\..\include\QtOpcUa\QtOpcUaDepends
      QtOpcUaDepends
      c:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.16.27023\include\cstddef(7): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
      NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.EXE"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.exe"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post