The above answer is incorrect as far as I know. Since before using any D-functions, you need to call the main procedure D. This is necessary to "initialize" D, i.e. his garbage collection. To solve this problem, you can simply enter the program into the main procedure in D or you can somehow call the main procedure D from C. (But I donโt know exactly how it works)
user449556
source share