curl-users
Re: Win32 and Statically compiled libcurl
Date: Thu, 17 Mar 2005 12:55:52 +0100 (CET)
On Wed, 16 Mar 2005, Danny Beaudoin wrote:
> I'm on Windows and I want to statically compile libcurl in a C program.
I'm cc'ing this reply over to the libcurl mailing list, as that is a better
list for libcurl-oriented stuff.
> Using it in the program is no problem to me but I don't know what to do when
> it comes to compiling it.
Did you read docs/INSTALL ? What compiler are you using?
> I did an #include <curl/curl.h>
That's a start for your app, but that requires you to have libcurl and its
headers installed already.
> 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?
Read docs/INSTALL and follow the steps described.
> Also, just including the header file mustn't be enough to have libcurl
> working?
It sounds like you need to start reading some C programming tutorials before
you proceed with this. But the answer is of course: no.
> Therefore I need to give the compiler or linker some option as some have
> told me and I would like more info on that.
Hm. Is this a question on how you compile/build libcurl or how you
compile/build your application to use an already existing and installed
libcurl?
> I propose to make these more easily accessible if possible.
Make what more accessible? I am open and willing to adjust the site and docs
to make it better. I'm not a good writer myself, I'm not a windows guy and I'm
already very aware of all the workings of curl and libcurl and how to do
programming with them, which makes it a lot harder to write docs for those
that aren't.
This is all open source. It only gets as good as what people contributes with.
> 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.
If you're using MSVC, I've always thought Rosso Salmanzadeh's guide was
detailed and useful enough: http://curl.haxx.se/libcurl/c/visual_studio.pdf
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-03-17