cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Win32 and Statically compiled libcurl

From: Yehoshua Hershberg \(yhershbe\) <yhershbe_at_cisco.com>
Date: Thu, 17 Mar 2005 12:46:30 +0100

I compiled libcurl as a .lib. I built a project in msdev and added all
the files in the lib directory. When I compiled there were a few errors
resulting from some files that should not have been added to the
project, so I removed them. That's it...it took just a few minutes.

-Josh

-----Original Message-----
From: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se] On Behalf Of Danny Beaudoin
Sent: Thursday, March 17, 2005 5:01 AM
To: curl-users_at_cool.haxx.se
Subject: Win32 and Statically compiled libcurl

Hi!
I'm on Windows and I want to statically compile libcurl in a C program.

Using it in the program is no problem to me but I don't know what to do
when it comes to compiling it.

I did an #include <curl/curl.h>
I downloaded curl-7.13.1.tar.gz and extracted it. Now as there are
makefiles, I should have to compile it alone, right? But on Windows,
what am I suppose to do?
Also, just including the header file mustn't be enough to have libcurl
working? Therefore I need to give the compiler or linker some option as
some have told me and I would like more info on that.

I have already looked on the site for these infos and talked on IRC a
bit with C coders but I could not get answers. I propose to make these
more easily accessible if possible. I did however find informations for
unix platforms but in my case I would like to complete my program on
Windows and I think that it would be great if it was easier for Windows
users to use libcurl.

Thanks!
Received on 2005-03-17