Windows 64bit -- cannot open input file 'kernel32.lib'
See original GitHub issueAfter following all the windows install steps, I have begun running into this gem of an error
PrepareForBuild:
Creating directory "Release\obj\posix-ext\".
InitializeBuildStatus:
Creating "Release\obj\posix-ext\posix-ext.unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64\CL.exe /c /I"C:\Users\IEguy\.node-gyp\0.10.32\src" /I"C:\Users\IEguy\.node-gyp\0.10.32\deps\uv\include" /I"C:\Users\IEguy\.node-gyp\0.10.32\deps\v8\include" /Zi /nologo /W3 /WX- /Ox /Ob2 /Oi /Ot /Oy /GL /D WIN32 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D BUILDING_V8_SHARED=1 /D BUILDING_UV_SHARED=1 /D BUILDING_NODE_EXTENSION /D _WINDLL /GF /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /GR- /Fo"Release\obj\posix-ext\\" /Fd"Release\obj\posix-ext\vc100.pdb" /Gd /TP /wd4251 /errorReport:queue "..\src\posix-ext.cc" "..\src\process-win.cc" "..\src\fs-win.cc" "..\src\posix-win.cc" ..\src\autores.cc ..\src\winwrap.cc /MP
posix-ext.cc
process-win.cc
C:\Users\IEguy\.node-gyp\0.10.32\deps\v8\include\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [C:\cygwin64\home\IEguy\repos\node-posix-ext\build\posix-ext.vcxproj]
with
[
T=v8::Object
]
fs-win.cc
C:\Users\IEguy\.node-gyp\0.10.32\deps\v8\include\v8.h(184): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [C:\cygwin64\home\IEguy\repos\node-posix-ext\build\posix-ext.vcxproj]
with
[
T=v8::Object
]
posix-win.cc
C:\Users\IEguy\.node-gyp\0.10.32\deps\v8\include\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [C:\cygwin64\home\IEguy\repos\node-posix-ext\build\posix-ext.vcxproj]
with
[
T=v8::Object
]
autores.cc
C:\Users\IEguy\.node-gyp\0.10.32\deps\v8\include\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [C:\cygwin64\home\IEguy\repos\node-posix-ext\build\posix-ext.vcxproj]
with
[
T=v8::Object
]
winwrap.cc
Link:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\cygwin64\home\IEguy\repos\node-posix-ext\build\Release\posix-ext.node" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib DelayImp.lib "C:\Users\IEguy\.node-gyp\0.10.32\Release\node.lib" netapi32.lib /MANIFEST /ManifestFile:"Release\obj\posix-ext\posix-ext.node.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\cygwin64\home\IEguy\repos\node-posix-ext\build\Release\posix-ext.pdb" /OPT:REF /OPT:ICF /LTCG /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X64 /DLL "Release\obj\posix-ext\posix-ext.obj"
"Release\obj\posix-ext\process-win.obj"
"Release\obj\posix-ext\fs-win.obj"
"Release\obj\posix-ext\posix-win.obj"
"Release\obj\posix-ext\autores.obj"
"Release\obj\posix-ext\winwrap.obj"
LINK : fatal error LNK1181: cannot open input file 'kernel32.lib' [C:\cygwin64\home\IEguy\repos\node-posix-ext\build\posix-ext.vcxproj]
Done Building Project "C:\cygwin64\home\IEguy\repos\node-posix-ext\build\posix-ext.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\cygwin64\home\IEguy\repos\node-posix-ext\build\binding.sln" (default targets) -- FAILED.
Build FAILED.
"C:\cygwin64\home\IEguy\repos\node-posix-ext\build\binding.sln" (default target) (1) ->
"C:\cygwin64\home\IEguy\repos\node-posix-ext\build\posix-ext.vcxproj" (default target) (2) ->
(ClCompile target) ->
C:\Users\IEguy\.node-gyp\0.10.32\deps\v8\include\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [C:\cygwin64\home\IEguy\repos\node-posix-ext\build\posix-ext.vcxproj]
C:\Users\IEguy\.node-gyp\0.10.32\deps\v8\include\v8.h(184): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [C:\cygwin64\home\IEguy\repos\node-posix-ext\build\posix-ext.vcxproj]
C:\Users\IEguy\.node-gyp\0.10.32\deps\v8\include\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [C:\cygwin64\home\IEguy\repos\node-posix-ext\build\posix-ext.vcxproj]
C:\Users\IEguy\.node-gyp\0.10.32\deps\v8\include\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [C:\cygwin64\home\IEguy\repos\node-posix-ext\build\posix-ext.vcxproj]
"C:\cygwin64\home\IEguy\repos\node-posix-ext\build\binding.sln" (default target) (1) ->
"C:\cygwin64\home\IEguy\repos\node-posix-ext\build\posix-ext.vcxproj" (default target) (2) ->
(Link target) ->
LINK : fatal error LNK1181: cannot open input file 'kernel32.lib' [C:\cygwin64\home\IEguy\repos\node-posix-ext\build\posix-ext.vcxproj]
4 Warning(s)
1 Error(s)
Time Elapsed 00:00:03.16
Any insights appreciated… the number of issues around this is pretty slim 😐
thanks for everything you guys do ❤️
Related reading
https://github.com/brianmcd/contextify/issues/110 https://github.com/prantlf/node-posix-ext/issues/1 http://stackoverflow.com/questions/9821700/visual-studio-2010-express-win-sdk-cannot-open-input-file-kernel32-lib
Issue Analytics
- State:
- Created 9 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Cannot open input file 'kernel32.lib' · Issue #6885 · dotnet/corert
I'm using the x64 Native Tools Command Prompt for VS 2017 on Windows 10. When trying to build the NativeLibrary example as shared...
Read more >error cannot open file 'kernel32.lib' - visual c++ - Stack Overflow
I got this error fatal error lnk1104: cannot open file 'kernel32.lib'. this error is getting because there is no path in VC++ directories....
Read more >LINK : fatal error LNK1104: cannot open file 'kernel32 ... - MSDN
Using my Win7-64 and Visual Studio 2010, I am porting an application from 32bit to 64bit, however, the above code gives a linker...
Read more >LINK : fatal error LNK1181: cannot open input file 'kernel32.lib'
Hi, Im encountering error during the build of my Visual Cobol Project. [cobollink] Linking (64-bit) Sample_Windows_0314.exe.
Read more >fatal error LNK1181: cannot open input file 'kernel32.lib' in x64
Trying to build the project failes with a LNK1181: cannot open input file 'kernel32. lib'. This causes cmake identify step to fail breaking...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
ugh sigh, ok so I installed
Microsoft Visual Studio Express 2013 with Update 3 for Windows
and ran
npm i --msvs_version=2013
and everything works! so basically I think that the instructions in the main readme should say to use the 2013 version and not the 2010 version.
thoughts?
@gyandeeps Thanks! That’s useful. I missed it somehow…