Using D static library from C

George Sapkin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jun 5 18:12:58 PDT 2014


On Thursday, 5 June 2014 at 19:10:17 UTC, Dave Wilson wrote:
> You can create a static library from one or more .o files using 
> ar, if that helps (unless I've failed to understand the 
> question).  "ar r libtest.a test.o" should do the job.

I don't have trouble creating a static library with dmd, I have 
trouble figuring out how to link it with C using gcc.


More information about the Digitalmars-d-learn mailing list