1st: Spelling of the target_name and the NODE_MODULE name parameter must be idendical. 2nd: Include the .node file directly. Use a module like binding. 3nd: Make sure that your node_module.cc file is actually compiled and added.
Showing your binding.gyp file, plus the "init part" of your module would be helpful...most errors are rather sudden and by accident. :} Am 29.04.2014 um 19:07 schrieb Nathan Rajlich <[email protected]>: > Can you show us your binding.gyp file? > > > On Mon, Apr 28, 2014 at 9:16 AM, Pawel Por <[email protected]> wrote: > > On Friday, April 25, 2014 11:29:51 AM UTC+2, Pawel Por wrote: > Hi > > When launching my addon under linux I got the following error message: > Error: Symbol myaddon_module not found > > I can see this symbol in myaddon.node file: > 00000000007eed40 d myaddon_module > > I have the following line in my source code: > NODE_MODULE(myaddon, myInit) > > My app.js is as follows: > require('/home/pp/myaddon'); > > Please tell what may be wrong. I'm confused. > > thanks for help > > I can see that myaddod_module in myaddon.o file is hidden: > 275: 00000000 20 OBJECT GLOBAL HIDDEN 16 myaddon_module > > As a result the symbol myaddon_module in myaddon.node file is local: > 31403: 00000000007f2b20 40 OBJECT LOCAL DEFAULT 26 myaddon_module > > I think this is a reason of my problem. > I tried various compilation/linking options (-rdynamic etc.) but with no > success. > Do you have any ideas what may be wrong. > > > -- > -- > 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 > > --- > 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]. > For more options, visit https://groups.google.com/d/optout. > > > -- > -- > 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 > > --- > 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]. > For more options, visit https://groups.google.com/d/optout. -- -- 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 --- 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]. For more options, visit https://groups.google.com/d/optout.
