Trying to build this https://github.com/substack/node-bigint module with node-gyp on windows. This lib wraps around libgmp It was previously using node-waf.
For gmp on windows I downloaded the static version for vc++ from here http://www.cs.nyu.edu/exact/core/gmp/ and put in a folder called 'gmp' in the bigint root dir then I created a binding.gyp file as { "targets": [ { "target_name": "bigint", "sources": [ "bigint.cc" ], "include_dirs": [ "gmp" ] } ] } then I did node-gyp configure and it created a build folder in the bigint root dir and then node-gyp build..\bigint.cc(579): error C3861: 'time': identifier not found ..\bigint.cc(579): error C3861: 'clock': identifier not found This is the line number 579 unsigned long seed = rand() + (time(NULL) * 1000) + clock(); and this are the includes on top of bigint.cc #include <stdint.h> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <v8.h> #include <node.h> #include <gmp.h> #include <map> #include <utility> using namespace v8; using namespace node; using namespace std; Any idea why the error is being caused? -- 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
