bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] HOWTO compile wget into a DLL


From: Micah Cowan
Subject: Re: [Bug-wget] HOWTO compile wget into a DLL
Date: Tue, 15 Mar 2011 11:55:04 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7

On 03/14/2011 02:30 PM, Ethan Zheng wrote:
> 
> Looking at compiling wget into DLL
> Was able to compile source by calling NMAKE,
> Can anyone provide me some HINTs about HOWTO get started.

Can't really give anything helpful, but note that wget was designed to
be a program, rather than a library, and this is reflected in many
places and ways in the source code. For instance, it expects to write
things to stderr, many functions may not work properly without other
functions and initializations having been set up first, re-entrancy is
probably not a common forethought in many cases. You might be better off
simply spawning the executable directly from your program, rather than
trying to redesign it as a DLL. It is not a task for the faint-hearted.

-- 
Micah J. Cowan
http://micah.cowan.name/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]