Trouble in converting C code to D

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Apr 12 08:42:37 PDT 2015


On 2015-04-12 11:57, Suliman wrote:
> Oh in gdal.d there is comment:
>
>   /*
>    * The enum CPLErr is defined in the header file cpl_error.h. I have not
>    * for the time being included a binding to that header, but have just
>    * imported this single symbol from it.
>    *
>    * Similarly, GDALProgressFunc is defined in port/cpl_progress.h
>    */
>
> Am I right understand that binding is not file with .d extension? So
> what is this file with extern(C) and so on. It's named interface file?

Based on that comment it sounds like the bindings are not complete. In 
this case only CPLErr has been included from the cpl_progress.h file.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list