question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

node-gyp Unresolved Sxternal Symbol Error

See original GitHub issue

I’m trying to make a native module that uses DirectX for some of it’s functionality, but I get this error when I try to node-gyp build:

main.obj : error LNK2001: unresolved external symbol Direct3DCreate9

I’m including d3d9.h in my c++ file. Is there something I’m doing wrong?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bnoordhuiscommented, May 12, 2017

https://github.com/nodejs/help/issues - but if it’s an issue with a specific module, people should report it there.

0reactions
refackcommented, May 13, 2017

As @bnoordhuis suggested, since this is a “usage” problem and not a direct bug in node-gyp, open an issue there and I’ll give you some tips

[Reasoning] This is not just a whim, on the one hand we want this issue board to reflect actual “bugs” in node-gyp, and on the other hand we want nodejs/help to be the knowledge base for “how to use” the products in the nodejs org.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node-gyp build gives unresolved external symbol error
1 Answer 1 ... GYP is a meta-build system that generates files for various build systems, MSBuild, in your case. In your case,...
Read more >
node-gyp LNK2001: unresolved external symbol #1788 - GitHub
I have a static library that I want to link against in a native node addon. I've created a minimum example to showcase...
Read more >
Unresolved symbols when compiling native node module ...
I'm trying to create an application with node-webkit that has also to call some Julia code. However, when trying to compile the module...
Read more >
Linker Tools Error LNK2001 - Microsoft Learn
The compiled code makes a reference or call to symbol. The symbol isn't defined in any libraries or object files searched by the...
Read more >
How to use a static library with node-gyp on Windows?-C++
However, node-gyp uses the Microsoft C and C++ (MSVC) runtime libraries. ... in this question (i.e., error LNK2001: unresolved external symbol ).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found