> You should declare the function pointer without the "extern(C)". > > Example: > alias int function(void* test) FTInitFunc; > > extern(C) int foo(void* test){ .... } > > FTInitFunc foo_ptr = &foo; > > This worked for me. That's a bug.