On Thursday, January 10, 2019 at 2:48:04 AM UTC+11, Vicent Vidal wrote: > > Recently I developed my first native C++ Addon for node that works fine > with my node project (node version 10.15.0) > The Addon has been built using XCode, which project has been generating > using CMake. > > I´m having the following error when I use the very same native C++ addon > from my Electron app. > > *dyld: lazy symbol binding failed: Symbol not found: > __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE* > * Referenced from: > /Users/vicentvidal/Documents/Desarrollo/DASNet2/dasaudio/build/DASNetAddon.node* > * Expected in: flat namespace* > *dyld: Symbol not found: > __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE* > * Referenced from: > /Users/vicentvidal/Documents/Desarrollo/DASNet2/dasaudio/build/DASNetAddon.node* > * Expected in: flat namespace* > > > Have you tried compiling from source in Electron, i.e. using its version of V8?
We've seen users of our add-on face the same problem. There is one user solution at https://github.com/n-riesco/oracledb-electron-builder that may give you ideas. -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: 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 unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. To post to this group, send email to nodejs@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/97d8be7f-607a-43e1-a8a8-2152fde99092%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.