D interface for C library problems

Oleg gaolong at i.ua
Mon Oct 15 04:44:23 PDT 2012


On Monday, 15 October 2012 at 11:42:41 UTC, Jacob Carlborg wrote:
> On 2012-10-15 13:37, Oleg wrote:
>
>
> You need to declare all functions you want to use from C as:
>
> extern (C) gpgme_err_code_t gpgme_err_code_from_syserror();
>
> Then you also need to link with the C library.
>
> http://dlang.org/interfaceToC.html


I have extern wrapper:

extern (C) {

   // code here

}




More information about the Digitalmars-d mailing list