-
Notifications
You must be signed in to change notification settings - Fork 15.3k
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
Linking a library with an addon #892
Comments
Can you try adding |
@zcbenz I get the same error. However if I remove dependency on mylib.lib from the binding.gyp and commenting out relevant code from the addon, test.js executes just fine. So I suspect the error signals that atom can't find mylib.lib? |
Can you check if the |
This message also gets thrown when you rename the EXE (#713) or any other import fails when loading the DLL. Check via |
@paulcbetts Thanks, that helped. |
@paulcbetts thanks for the suggestion to use Dependency Walker. I figured out the module I was importing was missing a |
I am writing an addon that wraps a C++ library. Unfortunately I am having difficulties loading that library with atom-shell.
This is my binding.gyp:
It works for tests with
node test.js
However when I do the same with
atom.exe test.js
it throws an exception "The specified module could not be found". Removing dependency on the library fixes the error, so I assume it is looking for mylib.lib in the wrong place?A lot of the answers I found have an absolute path to a library i.e. /usr/lib
Is it possible to keep the library file locally?
The text was updated successfully, but these errors were encountered: