cURL / Mailing Lists / curl-library / Single Mail


Re: How do I compile and install libcurl with MinGW?

From: Guenter Knauf <>
Date: Thu, 3 Apr 2008 01:44:32 +0200

Hi Samus,
> and the libraries and executable has built fine, with error 127 (which you
> told me is no problem, its just when it builds the first time). Now I
just a question: on what OS / SP are you? And what MingW version / make version?
(try: gcc -v, and mingw32-make -v)
> tried to build the examples but this is the error it returns:

> cannot find -lssl
> collect2: ld returned 1 exit status
> mingw32-make: *** [10-at-a-time.exe] Error 1
> rm 10-at-a-time.o

> I think that this is because the libraries are not install and the linker
> did not find them (right?). So, what should I do? Sorry but I'm a complete
> newby with this, so I kind of need some baby steps explanations hehe.
I guess sooner or later you might anyway want SSL, so just download the OpenSSL libs;
here you can find pre-compiled:

if you extract them at same level as where you have put libcurl sources it should be found:

otherwise set an environment var to point to the full path, f.e.:
set OPENSSL_PATH=c:/projects/sdks/openssl-0.9.8g

HTH, Guenter.
Received on 2008-04-03