Interfacing with C in 2.066.1
Jason den Dulk via Digitalmars-d
digitalmars-d at puremagic.com
Sat Nov 8 02:03:48 PST 2014
When upgrading my compiler from 2.065 to 2.066.1 I have
encountered problems with some of my extern(C) code.
My declarations (in a .di file) are wrapped in an extern(C)
declaration. The code compiled fine in 2.065. In 2.066.1 it first
complained about functions returning "const char *" ("function
without this cannot be const"). After removing the offending
consts, it now complains of a missing "init" field of a struct.
It looks like its trying to access the stuff as D code rather
than C code. Can anyone shed some light on what the problem might
be?
Thanks in advance
Jason
More information about the Digitalmars-d
mailing list