Using D libs in C

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri Apr 15 09:37:44 PDT 2011


AFAIK 'int' in D is always a 32-bit value. But in C, 'int' could be
64bit on 64bit platforms. You could try printing sizeof(int) in C and
compare that to int.sizeof in D and see if they match. You probably
know this, but make sure your exported D function is annotated with
extern(C).


More information about the Digitalmars-d-learn mailing list