why do i need an extern(C): here?

Ali Çehreli acehreli at yahoo.com
Fri Oct 16 15:14:03 UTC 2020


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 library
 > contains a D runtime it will be integrated with the current runtime."
 > 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.

Ali




More information about the Digitalmars-d-learn mailing list