how do i fix this node_dlang error?
MoonlightSentinel
moonlightsentinel at disroot.org
Mon Jun 7 20:37:19 UTC 2021
On Monday, 7 June 2021 at 19:03:44 UTC, Jack wrote:
> actually i didnt so I just added:
>
> ```d
> shared static this()
> {
> Runtime.initialize();
> }
>
> shared static ~this()
> {
> Runtime.terminate();
> }
> ```
>
> but it didn't change anything
That doesn't work because `Runtime.initialize()` is responsible
to execute the module ctors. You could try
`pragma(crt_constructor)`[1] instead.
[1] https://dlang.org/spec/pragma.html#crtctor
More information about the Digitalmars-d-learn
mailing list