Linking to libraries with D

Anders Bergh anders1 at gmail.com
Fri Nov 16 05:39:52 PST 2007


On Nov 16, 2007 1:28 PM, Jarrod <gigantic.midget at gmail.com> wrote:
> Well I know this sounds a rather mundane question to all you code buffs out
> there, but I'm wondering how I would use C libraries with D.

If you use DSSS, you could add this to your curl.d:

version(build) pragma(link, "curl");

This will work on both Windows and Linux. I'm not actually 100% sure
this is the proper "DSSS way", but it works for me.

Anders



More information about the Digitalmars-d mailing list