cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Single exe, no external dll dependency

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 19 Aug 2001 19:22:09 +0200 (MET DST)

On Sat, 18 Aug 2001, cd wrote:

> > You have to add include/curl to your include path and link your program
> > with the lib/libcurl.lib file to get a standalone executable.
>
> ...using vc++...
> ..And yes, it does create a *.exe, but it only runs with the required
> *.dll in the same directory. Isn't there a way to compile everything
> into one file... without requiring a separate dll... the same way Jörn
> Hartroth's port to windows(no ssl) is a single .exe with no DLL?
>
> Is Jörn Hartroth's win_nossl port available as source code?

Yes, compiling libcurl into a linked library should indeed be possible, and
that is what Jörn does when he builds the curl binaries. It is only a matter
of telling VC++ to do that instead of building a DLL.

How to tell VC++ to do that is however beyond my knowledge.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-08-19

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET