Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error LNK1104: cannot open file 'kernel32.lib' #273

Open
RikkoMatsumatoOfficial opened this issue Jan 31, 2025 · 0 comments
Open

fatal error LNK1104: cannot open file 'kernel32.lib' #273

RikkoMatsumatoOfficial opened this issue Jan 31, 2025 · 0 comments

Comments

@RikkoMatsumatoOfficial
Copy link

 It fails with the following output:

    Change Dir: 'E:/libmem/CMakeFiles/CMakeScratch/TryCompile-dib9y0'

    Run Build Command(s): "C:/Program Files/CMake/bin/cmake.exe" -E env VERBOSE=1 nmake -f Makefile /nologo cmTC_6bb8a\fast
        "E:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe"  -f CMakeFiles\cmTC_6bb8a.dir\build.make /nologo -L                  CMakeFiles\cmTC_6bb8a.dir\build
    Building C object CMakeFiles/cmTC_6bb8a.dir/testCCompiler.c.obj
        "C:\Program Files\CMake\bin\cmake.exe" -E cmake_cl_compile_depends --dep-file=CMakeFiles\cmTC_6bb8a.dir\testCCompiler.c.obj.d --working-dir=E:\libmem\CMakeFiles\CMakeScratch\TryCompile-dib9y0 --filter-prefix="Note: including file: " -- E:\PROGRA~3\MICROS~1.0\VC\bin\amd64\cl.exe @C:\Users\ikop\AppData\Local\Temp\nmAA55.tmp
    testCCompiler.c
    Linking C executable cmTC_6bb8a.exe
        "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --msvc-ver=1900 --intdir=CMakeFiles\cmTC_6bb8a.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\mt.exe --manifests -- E:\PROGRA~3\MICROS~1.0\VC\bin\amd64\link.exe /nologo @CMakeFiles\cmTC_6bb8a.dir\objects1.rsp @C:\Users\ikop\AppData\Local\Temp\nmAA85.tmp
    Visual Studio Incremental Link with embedded manifests
    Create CMakeFiles\cmTC_6bb8a.dir/manifest.rc
    Create empty: CMakeFiles\cmTC_6bb8a.dir/embed.manifest
    RC Pass 1:
    C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\rc.exe /fo CMakeFiles\cmTC_6bb8a.dir/manifest.res CMakeFiles\cmTC_6bb8a.dir/manifest.rc
    LINK Pass 1:
    E:\PROGRA~3\MICROS~1.0\VC\bin\amd64\link.exe /nologo @CMakeFiles\cmTC_6bb8a.dir\objects1.rsp /out:cmTC_6bb8a.exe /implib:cmTC_6bb8a.lib /pdb:E:\libmem\CMakeFiles\CMakeScratch\TryCompile-dib9y0\cmTC_6bb8a.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\cmTC_6bb8a.dir/intermediate.manifest CMakeFiles\cmTC_6bb8a.dir/manifest.res
    LINK Pass 1: command "E:\PROGRA~3\MICROS~1.0\VC\bin\amd64\link.exe /nologo @CMakeFiles\cmTC_6bb8a.dir\objects1.rsp /out:cmTC_6bb8a.exe /implib:cmTC_6bb8a.lib /pdb:E:\libmem\CMakeFiles\CMakeScratch\TryCompile-dib9y0\cmTC_6bb8a.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\cmTC_6bb8a.dir/intermediate.manifest CMakeFiles\cmTC_6bb8a.dir/manifest.res" failed (exit code 1104) with the following output:
    LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
    NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' : return code '0xffffffff'
    Stop.
    NMAKE : fatal error U1077: '"E:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe"' : return code '0x2'
    Stop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant