-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
LINK : fatal error LNK1181: cannot open input file 'gdi32.lib' #897
Comments
Can you post the exact contents of your binding.gyp? |
And my |
I can't tell you exactly what goes wrong but gdi32 is a system library; the .lib for it is normally shipped with the Windows SDK or Visual Studio. Is it anywhere on your hard drive? |
@bnoordhuis Thanks for the tip; so I redownloaded Microsoft Visual Studio 2015 and made sure to do a custom that included the Microsoft Visual SDK. That resolved my LINK error, but now I have a new error:
I tried googling this error and people were saying to try the command Any ideas? EDIT: I found a |
So I booted up VS15 and downloaded some C++ SDK and now everything works perfectly! Thank you @bnoordhuis for all your help. I'm going to close this issue as it is resolved. |
Windows 10
node v4.1.2
npm v3.8.3
node-gyp v3.3.1
Following the very basic set up tutorial to get a Node Addon working, which you can find here (my set up and configuration is exactly the same as this directory):
https://github.com/kkaefer/node-cpp-modules/tree/master/01_bare_minimum
When I
node-gyp configure
everything seems to configure fine and no errors are thrown, however when I try tonode-gyp build
I always end up with this fatal linking error to some input file namedgdi32.lib
. Here is the response I get when I perform both of these commands:Any help would be greatly appreciated - I'm still relatively new with Node Addons and I'm a bit lost here as to what could be going wrong.
The text was updated successfully, but these errors were encountered: