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

fatal error LNK1104 'kernel32.lib' & U1077



  • This Problem when i compile, until now i am not have solution, can any help my

    LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\link.EXE"' : return code '0x450'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\nmake.exe"' : return code '0x2'
    Stop.
    12:25:40: The process "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\nmake.exe" exited with code 2.
    Error while building/deploying project coba_msvc2019 (kit: msvc32)
    When executing step "Make"

    alt text


  • Lifetime Qt Champion

    @mpl210 The screenshot you posted says that there are restriction on your machine and you have to ask the administrator. Did you? Do you have any anti-virus software running?



  • @jsulm hi..thanks your reply, i finish disable antivirus, but i have new problem.

    21:10:00: Running steps for project pmk_yhk...
    21:10:00: Configuration unchanged, skipping qmake step.
    21:10:00: Starting: "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\nmake.exe"
    "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\nmake.exe" -f Makefile.Debug
    cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:cplusplus -Zi -MDd -std:c++17 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -EHsc /Fddebug\pmk_yhk.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DQT_QML_DEBUG -DQT_WEBENGINEWIDGETS_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_QMLMODELS_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_POSITIONING_LIB -DQT_CORE_LIB -I..\pmk_yhk -I. -IC:\Qt\5.15.0\msvc2019\include -IC:\Qt\5.15.0\msvc2019\include\QtWebEngineWidgets -IC:\Qt_\5.15.0\msvc2019\include\QtWebEngineCore -IC:\Qt_\5.15.0\msvc2019\include\QtQuick -IC:\Qt_\5.15.0\msvc2019\include\QtPrintSupport -IC:\Qt_\5.15.0\msvc2019\include\QtWidgets -IC:\Qt_\5.15.0\msvc2019\include\QtGui -IC:\Qt_\5.15.0\msvc2019\include\QtANGLE -IC:\Qt_\5.15.0\msvc2019\include\QtSql -IC:\Qt_\5.15.0\msvc2019\include\QtQmlModels -IC:\Qt_\5.15.0\msvc2019\include\QtWebChannel -IC:\Qt_\5.15.0\msvc2019\include\QtQml -IC:\Qt_\5.15.0\msvc2019\include\QtNetwork -IC:\Qt_\5.15.0\msvc2019\include\QtPositioning -IC:\Qt_\5.15.0\msvc2019\include\QtCore -Idebug -I. -I/include -IC:\Qt_\5.15.0\msvc2019\mkspecs\win32-msvc -Fodebug\ @C:\Users\LENOVO\AppData\Local\Temp\nm42BC.tmp
    form.cpp
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include\cstddef(12): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
    main.cpp
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include\cstddef(12): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
    mainwindow.cpp
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include\cstddef(12): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
    pdf_dok.cpp
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include\cstddef(12): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
    Generating Code...
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\cl.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\nmake.exe"' : return code '0x2'
    Stop.
    21:10:01: The process "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\nmake.exe" exited with code 2.
    Error while building/deploying project pmk_yhk (kit: msvc32)
    When executing step "Make"
    21:10:01: Elapsed time: 00:01.



  • .. this solve, iam re instal msvc build tools, and copy shared folder to um..


Log in to reply