> You are passing a function pointer to a C library, where it > will be expected that the function uses the C calling > convention. So you have to declare the function as extern(C), > otherwise DMD will not compile it as such. That can cause > segfaults. Right ok thanks.