On Wednesday, 29 July 2015 at 17:59:26 UTC, Kyoji Klyden wrote:
How would I use a C function that's returning a struct? auto
doesn't work here, and from what I can tell D can't import C
headers. (If it really can't then, that would be a very welcome
feature)
I do have the required libs but I can't create my D obj file so
I can't really get there.
I know that there htod but, is there anyway I can avoid using
that?
I'm using GDC, and GCC on Win7
checkout dstep https://github.com/jacob-carlborg/dstep
i think you can just define a struct with the same shape.
see also mike's answer on
http://forum.dlang.org/post/yheamworbhcaprrko...@forum.dlang.org