0
我试图让每一个节点的扩展...与节点扩展
http://nodejs.org/api/addons.html#addons_hello_world
与几个小的修改(我叫helloworld.cc和testnode.js),但存在的问题,当我尝试编译下面的行...
require('./build/Release/helloworld');
我得到以下ST
node.js:242
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: invalid argument
at Object..node (module.js:475:11)
at Module.load (module.js:351:32)
at Function._load (module.js:309:12)
at Module.require (module.js:357:17)
at require (module.js:373:17)
at Object.<anonymous> (/home/jackie/Desktop/hellonode/testnode.js:1:63)
at Module._compile (module.js:444:26)
at Object..js (module.js:462:10)
at Module.load (module.js:351:32)
at Function._load (module.js:309:12)
释放目录的LS是...
总124 -rw-RW-R-- 1济济70288 2012-04-07 16:16 helloworld_1.o -rwxrwxr-X 1济济49431 2012-04-07 16:16 helloworld.node
感谢
成龙
,似乎只是礼貌地添加注释说明提问者可以做什么比较好,否则你的风险追逐他们关闭。 – 2012-04-07 23:12:36
您是否已将'NODE_MODULE(hello,init)'行更改为'NODE_MODULE(helloworld,init)'?你可以发布C++代码吗? – loganfsmyth 2012-04-08 04:58:19
Loganfsmyth似乎是正确的,这是我的CC中的问题。 – Jackie 2012-04-09 00:26:35