Linking to libraries with D
Jarrod
gigantic.midget at gmail.com
Fri Nov 16 06:09:08 PST 2007
== Quote from Anders Bergh
> 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
Anders,
I think I worded the topic a bit wrong. My issue is not that I can't link with the
C library, it's more that I can't link with the C library without having to
compile curl.d.
I guess it just seems redundant to me that I have to compile what should only
really be a header file. And I'll be compiling it into a static library no less,
meaning I needed to make a library just to interface with another library.
Not exactly seamless.
Oh well, just a few more minutes of effort anyway.
Thanks for the reply,
Jarrod.
More information about the Digitalmars-d
mailing list