cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: can i statically compile the lib?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 31 Mar 2008 22:22:20 -0700

On Tue, Apr 01, 2008 at 07:57:44AM +0300, Meir Yanovich wrote:
> im new to this lib after searching the web for way to enable my
> application to have http post/get sending

libcurl's a good way to do that!

> now i have 2 questions first is :
> can i compile the lib to static lib so i can link it statically with
> my application ?

Yes. Make sure to configure libcurl with the --enable-static option
(which is the default), then link your application with the output of
`curl-config --static-libs` (this assumes a UNIX environment of some sort).

> second question is Because i need only basic operations of the http
> protocol ( that is send http and recive http )
> can i reduce some how the lib size ?

Yes, you can disable all the protocols and some features you don't want.
See the "reducing size" section of the docs/INSTALL file.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-04-01