std.net.curl on Windows

Ivan Kazmenko gassa at mail.ru
Fri Aug 9 03:14:10 PDT 2013


Hi!

To use std.net.curl successfully with DMD 2.063.2 on Windows, I 
had to follow the steps below:

-----

1. Download libcurl from here: 
http://curl.haxx.se/download.html#Win32.

2. Extract libcurl.dll.

3. Download implib tool from here: 
http://ftp.digitalmars.com/bup.zip, as OPTLINK's /IMPLIB option 
did not work for me at all (error 138).

4. Run "implib.exe /system curl.lib libcurl.dll".

5a. Put the lib and dll in the current directory, OR

5b. modify the LIB line of DMD's bin\sc.ini file.

-----

The steps themselves, especially the "/system" option which added 
the needed "_" prefix to function names in the lib file, required 
quite a bit of googling and guessing for me as I'm not used to 
linking different formats of libraries by myself.

Is there an easier way?  How to learn about it?  A detailed 
instruction (at least as detailed as the steps above) at the top 
of the manual page (http://dlang.org/phobos/std_net_curl.html) 
would have been nice... After all, it's a third party library not 
fully supplied with the compiler.

Ivan Kazmenko.


More information about the Digitalmars-d-learn mailing list