On Monday, April 14, 2014 5:14:14 PM UTC+2, mscdex wrote: > > On Monday, April 14, 2014 10:32:25 AM UTC-4, Pawel Por wrote: >> >> I can see that node.lib exists in Windows installation and does not exist >> in Linux one. >> It is used when linking native (C++) modules. I wonder why node.lib is >> not necessary during linking on Linux. >> > > It's a matter of platform differences. AFAIK Windows' shared libraries > (DLLs) are more like regular executables, just without a main entry point. > So because of this, the linker needs to know some extra information (e.g. > names and entry points) of functions inside the DLL in order for an > external program to be able to link to and call those functions. This > information is what is stored inside the .lib file. > > On *nix however, a shared library already contains all of the necessary > information needed for linking to it, so no extra (.lib) file is needed. > > That is why a .lib is needed for Windows and not for Linux :-) >
Thanx for reply to all of you, but the question is still open. Why there is no "node like" library to link under Linux, or at least I can't see it when building a native module under Linux using node-gyp. I'm using verbose parameter with node-gyp and I can see the exact g++ line used to link my native module. In this process I cannot see any nodejs specific library that it is linked with. I also cannot see any nodejs specific library when listing shared library dependencies with ldd my_module.node -- -- 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.
