Hey.

I just read src/node.js up and down, and realized,that it exported some 
fucntions by its own already. It made me wonder something. Since this thing 
seems to be able to require like usual, would one be able to actually include a 
native module that way?

So if I added this to node.gyp:

        ‚custom/myModule.cc‘,
        ‚custom/myModule_wrapper.cc‘

and compiled, those two would obviously be compiled in as well. But, that 
doesnt yet mean that I can utilize a native addon - or?
Does node know if it has a special module compiled in already, and offer it for 
require() to be used? As far as I know, it actually uses dlopen and the like to 
dynamicaly link against the .node files and utilize them. So I was kind of in 
doubt if compiling a module into the binary woudl actually do it?

Kind regards, Ingwie

-- 
-- 
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
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 nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to