Using D libs in C

Dainius (GreatEmerald) pastas4 at gmail.com
Tue Mar 29 12:36:09 PDT 2011


Oh, never mind. About sending strings, I got it working, I just had to
create a function like this in D:

immutable(char)* GetString()
{
    return StringD.toStringz();
}

As for D not compiling, I had to declare it in D, d'oh :D And that
extern is in the wrong place there.


More information about the Digitalmars-d-learn mailing list