Groups
Groups
Sign in
Groups
Groups
nodejs
Conversations
About
Send feedback
Help
NODE_MODULE error
23 views
Skip to first unread message
rhasson
unread,
Mar 25, 2012, 8:44:37 AM
3/25/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nodejs
I'm writing a native module that wraps a C program. Below is my
module declaration but when I build it with node-waf I get the
following error:
error: ‘node_module_struct’ in class ‘node’ does not name a type
#define FREELING_BINDING
#include <node.h>
#include <v8.h>
#include "freeling_tokenizer.h"
void InitAll(v8::Handle<v8::Object> target) {
FreeLingTokenizer::Init(target);
}
NODE_MODULE(freeling, InitAll)
rhasson
unread,
Mar 25, 2012, 5:15:21 PM
3/25/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nodejs
I figured it out. in my wscript, I should have added my
"freeling_tokenizer.cc to the source array.
Reply all
Reply to author
Forward
0 new messages