cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: linking against libcurl on windows *hides*

From: Chris Baechle <bangular_at_gmail.com>
Date: Mon, 24 Apr 2006 16:40:18 -0400

On 4/23/06, Brian Dessent <brian_at_dessent.net> wrote:
> Chris Baechle wrote:
>
> > libraries. On windows, it seems you are supposed to use regsvr32 to
> > register it, and after that I have know clue how to do the gcc
> > equivalent of -l. Regsvr32 keeps given me an "libcurl.dll was loaded,
> > but the DllRegisterServer entry point was not found. This file can not
> > be registered". I've used regsvr32 before and have been able to
> > successfully register libraries, but libcurl won't register. Msdn says
> > that error means its not a valid dll. However, I even tried to
> > register open office's libcurl.dll with the same results (and
> > obviously that one is a valid dll).

> Libcurl most certainly doesn't have anything to do with COM. DLLs are
> not anything special, they are just shared libraries like on *nix. In
> fact if you were using mingw or cygwin it really would be as simple as
> adding "-lcurl" to the end of the link command line. If you're using MS
> tools you just need to add the import library (.lib) to the list of
> libraries to link against, either in the project settings or in the
> command line.

Thank you. That worked for me. I ended up using mingw (devcpp) anyway.
Visual studio isn't my cup of tea.
Received on 2006-04-24