We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've downloaded and installed Lua like explained here: https://www.lua.org/download.html
Now I try to use Lua in the C++ code for my nodejs addon. This is my binding.gyp file:
"targets": [ { "target_name": "lua", "sources": [ "lua.cpp" ], "libraries": [ "-ldl", "-llua", ], "cflags_cc": [ "-std=c++17", "-fconcepts", ] } ] }
This is not working. I always get this error:
/usr/bin/ld: //usr/local/lib/liblua.a(lapi.o): relocation of //usr/local/lib/liblua.a: error adding symbols: undefined vlaue collect2: error: ld returned 1 exit status make: *** [Release/obj.target/lua.node] Error 1 gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:262:23) ...
make
I definitely can compile any c++-code with llua on my system like this:
llua
g++-8 lua_app.cpp -std=c++17 -llua -ldl -Wall -fconcepts
What am I doing wrong with node-gyp?
The text was updated successfully, but these errors were encountered:
@creationix you don't happen to have a lua-embedded-in-a-node-addon binding.gyp example handy do you? closing this issue due to staleness.
Sorry, something went wrong.
Well, this issue is not resolved yet.
I do not, sorry.
No branches or pull requests
I've downloaded and installed Lua like explained here: https://www.lua.org/download.html
Now I try to use Lua in the C++ code for my nodejs addon. This is my binding.gyp file:
This is not working. I always get this error:
I definitely can compile any c++-code with
llua
on my system like this:g++-8 lua_app.cpp -std=c++17 -llua -ldl -Wall -fconcepts
What am I doing wrong with node-gyp?
The text was updated successfully, but these errors were encountered: