how do i fix this node_dlang error?
Jack
jckj33 at gmail.com
Tue Jun 8 00:58:12 UTC 2021
On Tuesday, 8 June 2021 at 00:00:50 UTC, Mike Parker wrote:
> On Monday, 7 June 2021 at 22:24:03 UTC, Jack wrote:
>>
>> I think the entry point function is ```void atStart(napi_env
>> env) {}``` so there's no DllMain...
>
> DLLMain is not strictly required. It's called by the system
> loader when the DLL is first loaded into the process. The
> MainFunction for node is just a means for having a
> cross-platform approach to initialization: node will load your
> shared library then call the MainFunction. So you can
> initialize the runtime in DLLMain or in your atStart function.
> Shouldn't matter.
i see
> Your problem may be unrelated to D, though. It appears to be a
> common error when developing native code for Electron. Googling
> for "electron {paste error message here}" or for "electron dll
> initialization" turns up several results.
I'm googling this has been hours, none of the solutions worked
for me, including rebuild the native module with electron-rebuild
package
> Some cursory reading shows that the issue may be a version
> mismatch between the version of node the dll was linked with
> and that used by Electron.
the dll which I was just build with dub command? how I have a
version mismatch if they're the very same file?
More information about the Digitalmars-d-learn
mailing list