How to create shared library on linux?

Li Jie cpunion at gmail.com
Sun Aug 13 22:14:40 PDT 2006


> On linux, DMD uses GCC as its linker so you'd just do something like...

> dmd file.d -L-ltest

> If I remember correctly. Or

> dmd -c file.d
> gcc file.o -o file -ltest

Thanks, it is right.

I will try gdc to create shared library.



More information about the Digitalmars-d-learn mailing list