Hi, On Friday, December 5, 2014 2:08:22 AM UTC-8, blazs wrote: > > Is it necessary for Node.js (version 0.11+) addons to define > BUILDING_NODE_EXTENSION macro? The compiler warns me that the macro is > enabled by default. > > The macro is defined on the command line by node-gyp. You can see that by setting "V" to "1" when running node-gyp:
node-gyp build V=1 To be safe, you could define it like following: #ifndef BUILDING_NODE_EXTENSION #define BUILDING_NODE_EXTENSION 1 #endif /* BUILDING_NODE_EXTENSION */ > Examples in the Addons Documentation <http://nodejs.org/api/addons.html> > define > this macro. Is this deprecated? > You can find the binary add-ons documentation that matches the latest unstable release here: http://nodejs.org/dist/v0.11.14/docs/api/addons.html. I haven't tested the examples, but they do not define BUILDING_NODE_EXTENSION. Please let us know if that helps. If you find any problem in the binary add-ons documentation, please file an issue at https://github.com/joyent/node/issues. Thank you! -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/6c38eac7-7aef-4abf-87c9-366e629bb8bf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
