curl-library
Re: libcurl used in multiple components of an application
Date: Thu, 26 Mar 2009 09:29:43 +0100 (CET)
On Thu, 26 Mar 2009, centrio_at_gmail.com wrote:
> I am developing an application which uses more than one libs. These
> individual libs are developed using libcurl. They handle different http
> requests. One uses easy handle and other lib uses multi handle. I want to
> know, if my main application will face any problems since I am using libcurl
> in more than one components. Also in both the individual libs, I have not
> performed global_init(). Is it still a problem to use curl in both libs and
> then integrate it with main application?
This is really simple: if you use more than one thread you MUST use
curl_global_init(). Period. No discussion.
Doing it differently will lead to sad faces and unhappiness at some point.
Now, or later.
-- / daniel.haxx.seReceived on 2009-03-26