-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
why V8 platform symbol not exported #34790
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
The Your example add-on is not valid code. I mean, it compiles, but there's no way it'd work even if the symbols were exported. |
I want to use v8 api without compiling the whole v8, that's why I choose add-on. Like showcase how to use v8 api to make a hello world.
Why is this ? Do you mean the code is not complete. I delibarately skip code call like |
Looks like the symbol export controlled by macro |
To elaborate: there can be only a single Bad car analogy: a car has a single steering wheel and it's steered by the driver, not the passengers (heart attacks excepting!) Node is the driver, add-ons are the passengers. |
@gengjiawen can we close this? |
Take https://github.com/nodejs/node-addon-examples/tree/master/1_hello_world/napi
patch
hello.cc
like thisRunning it will result in
As far as I understand, <libplatform/libplatform.h> is public V8 api, why related symbols not export.
The text was updated successfully, but these errors were encountered: