First of all, node-waf is deprecated in nex stable release (v0.8.x) and you
should use binding.gyp to build addons for latest versions of node.
If you use wscript, you may try:
conf.check_tool("compiler_cxx")
conf.check_tool("node_addon")
It is enough to build node addon.
понедельник, 25 июня 2012 г., 13:58:07 UTC+4 пользователь Chris Dew написал:
>
> I expect that the original author had the same issues as me:
>
> I have mixed C/C++ project, which works fine with make, but I want to make
> install (without shared libraries) as a NodeJS addon.
>
> When I try to use 'compiler_c' in the wscript I get an: ImportError: No
> module named compiler_c.
>
> Thanks,
>
> Chris.
>
>
>
>
>
> On Saturday, 13 March 2010 00:44:08 UTC, ryan wrote:
>>
>> On Fri, Mar 12, 2010 at 3:54 PM, Arthur <[email protected]> wrote:
>> > I know something like this was already discussed here. My apologies.
>> > Is it possible to create an addon for Node.JS, e.g. like described
>> > here: http://nodejs.org/api.html#_addons, in C, not C++?
>>
>> V8 is a C++ library, so you must use that. You don't need to use any
>> other C++ features.
>>
>
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en