chad3814 / node-hashtable

Native hashtable interface for when V8 objects can't take the heat
MIT License
106 stars 41 forks source link

fatal error: 'tr1/unordered_map' file not found #38

Closed leyeye closed 6 years ago

leyeye commented 7 years ago

Sorry! My English is not good,so I hope you can understand the issues Tell the author that this fails on your system: npm ERR! node-gyp configure build

gerhardcit commented 6 years ago

Same here.. node 8. anybody have suggestions for a replacement of this lib?

 node-gyp configure build

  CXX(target) Release/obj.target/native/src/hashtable.o
In file included from ../src/hashtable.cpp:1:
../src/hashtable.h:7:10: fatal error: 'tr1/unordered_map' file not found
#include <tr1/unordered_map>
chad3814 commented 6 years ago

I would suggest the builtin Map: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map