Re: [nodejs] Missing node.lib after running vcbuild.bat

80 views
Skip to first unread message

José F. Romaniello

unread,
Oct 26, 2012, 7:38:14 AM10/26/12
to nod...@googlegroups.com
Hello Erik, have you tried running ```vcbuild.bat --debug``` from the command line? I dont remember if it is --debug or just debug in windows.

Sorry I didnt reply the private mail about this, just saw the two

2012/10/26 Erik <ew.r...@gmail.com>
Hello everyone!

Just for evaluation, I wanted to try to write a C++ module for Node.js under Windows and found this useful blogpost, which I wanted to reproduce.

It says that I can download the latest source code and just run the included vcbuild.bat to make a windows build. This also works fine as far as I can see
but I'm not able to create my c++ module under visual studio because I can not link it to the node.lib file, which should have been created with vcbuild.

Any idea why the file is missing? I tried different versions of the source code. Some create a Release folder, some create a Debug folder, where the node.lib
should be located in, but it's not (there a lot of other different files though)!

Hope anyone has an idea, help would be much appreciated!
Thanks

/Erik



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

Nathan Rajlich

unread,
Oct 26, 2012, 11:00:35 AM10/26/12
to nod...@googlegroups.com
You don't need to build your own copy of node to build native addons.
Just use node-gyp instead, and it takes care of all the dirty work for
you (like linking to the node.lib file).

Daniel Zhang

unread,
Oct 26, 2012, 2:25:54 PM10/26/12
to nod...@googlegroups.com
After you get node.sln after vcbuild.bat, build it in debug and release uisng Visual Studio. Then the lib should be in Debug directory or Release directory.

vcbuild.bat may build libs too.
Reply all
Reply to author
Forward
0 new messages