cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: compiling with ssl, single-threaded, on winders

From: Raul Carolus <rcarolus_at_lightyeardt.com>
Date: Thu, 15 Sep 2005 15:45:40 -0500

Thanks for the response, I was able to get it compiled. I used
something similar to response A.

-Raul

Daniel Stenberg wrote:
> On Thu, 15 Sep 2005, Raul Carolus wrote:
>
>> I'm trying to compile the library as single-threaded. I've compiled
>> the ssl library as single-threaded already.
>
>
> I'm not really familiar with what building it as single-threaded means.
> But:
>
>> libcurl.lib(hostthre.obj) : error LNK2001: unresolved external symbol
>> __beginthreadex
>
>
> ... is used by lib/hostthre.c which is the Windows threaded name
> resolver. You can indeed build libcurl to use a non-threaded resolver
> instead. You can then opt for:
>
> A) the synchronous name resolver - make sure lib/setup.h doesn't define
> the
> USE_THREADING_* defines and rebuild
>
> B) the asynchronous name resolver - build c-ares and make libcurl use
> that at
> build time, by defining USE_ARES when compiling
>
> I hope this answers your question!
>

-- 
Raul Carolus
Lightyear Dealer Technologies
800-499-1914 x119
rcarolus_at_lightyeardt.com
Received on 2005-09-15