You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- you link against `node.lib` from _Electron_ and not Node. If you link against
120
+
the wrong `node.lib` you will get load-time errors when you require the
121
+
module in Electron.
122
+
- you include the flag `/DELAYLOAD:node.exe`. If the `node.exe` link is not
123
+
delayed, then the delay-load hook won't get a chance to fire and the node
124
+
symbols won't be correctly resolved.
125
+
-`win_delay_load_hook.obj` is linked directly into the final DLL. If the hook
126
+
is set up in a dependent DLL, it won't fire at the right time.
127
+
128
+
See [node-gyp](https://github.com/nodejs/node-gyp/blob/e2401e1395bef1d3c8acec268b42dc5fb71c4a38/src/win_delay_load_hook.cc) for an example delay-load hook if you're implementing your own.
129
+
102
130
## Modules that rely on `prebuild`
103
131
104
132
[`prebuild`](https://github.com/mafintosh/prebuild) provides a way to
0 commit comments