Adding libraries to an executable
Anton Alexeev
alexanto at gmx.de
Sat Sep 7 06:27:49 PDT 2013
On Friday, 6 September 2013 at 22:31:52 UTC, Jonathan M Davis
wrote:
> On Friday, September 06, 2013 23:31:57 Anton Alexeev wrote:
>> I've written a program which uses curl library. So on a PC
>> without curl the program will not work until you install the
>> library. Is there a way to put the curl library in the
>> executable?
>
> Statically link it.
>
> - Jonathan M Davis
How can I do that? I have compiled my program with this command:
"dmd -L-lphobos2 -L-lcurl test.d
"
Excuse me for that dumb question but I'm really new to compiled
languages. I've written some code in Java but it's not the same.
More information about the Digitalmars-d-learn
mailing list