C Interoperability

Generate Bindings

D can link with C libraries very easily. However, the header files must be converted into D bindings.

Ideally, we could generate bindings from C header files automatically. In practice, a bullet-proof tool has never been built.

C++ Interop

More limited than C interop, but possible to a certain extend.

Porting Code

Porting C/C++ code to D is relatively easy, since the languages are very similar.

See also

Converting C to D, C++ to D, C Preprocessor to D,