joyent/node — Issue #2679: C++ addon does not work
Author: aichholzer
Created: 2012-02-02 18:03:41+00:00
State: open

Hello,

I was following the C++ addons examples (for 0.6.9), but it seems that only the “Hello world” one works. The others yield an error as follows:

node: symbol lookup error: /home/stefan/nodecode/module/build/Release/detect.node: undefined symbol: _ZN6detect4initEv

The code is exactly the same as on the site, I just renamed the class and the method called at load-time. The call actually looks like: detect::init();

Any ideas what might be going on here?

Thank you.