why do i need an extern(C): here?
kheaser at gmail.com
Fri Oct 16 23:12:42 UTC 2020
On Friday, 16 October 2020 at 15:14:03 UTC, Ali Çehreli wrote:
> On 10/15/20 2:42 PM, Ali Çehreli wrote:
> > I've recently done the same by calling dlopen() and dlsym()
> > directly. Runtime.loadLibrary documentation says "If the
> > contains a D runtime it will be integrated with the current
> > That would explain why my program seg-faults for my first
> tester with
> > the garbage collector signatures in the function call stack.
> Replacing dlopen() with Runtime.loadLibrary() did solve the
> segfault issue for me.
Isn't dlopen() for Linux and LoadLibrary() for Windows? Or are
you running Windows Subsystem for Linus (WSL) or mingw?
Just to add to the above discussions (for future searchers). I
also found a demangle() in std.demangle that I used in the
alias addSevenFuncSignature = int function(int, int);
int function(int, int)* onlineapp.main().addSeven
More information about the Digitalmars-d-learn