Using D static library from C

Mark Isaacson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jun 5 19:01:11 PDT 2014


I found that if I told dmd rather than gcc to do the linking that
everything just magically worked.

In other words:
gcc -c cstuff.c
dmd -c dstuff.d
dmd cstuff.o dstuff.o

I presume that dmd would be similarly smart with static libraries.


More information about the Digitalmars-d-learn mailing list