cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Win32: dll?

From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Mon, 08 Oct 2001 20:06:41 +0200

At 17:34 2001-10-08, Alan White wrote:
>Hi folks,
>
>I'm new to the windows dll game so please be gentle. I built libcurl 7.9
>using msvc, all seemed to go well.
>
>The build process produced a .lib file which, after much nonsense from
>msvc, I _think_ needs to be renamed .dll. From here it seems I need an
>import library to link my app against, so I ran lib against the (now
>renamed) libcurl.dll and it produced a libcurl.lib. Problem is the linker
>seems to think there's no exported functions to link against in there.
>
>Can you please point out where I have gone wrong? Has anybody else built
>libcurl on an ms platform who can share the experience with me?

Hi!

You don't have to build a DLL. I don't know about the .DSP project file, but
if you build using the makefiles the .LIB file is all you need.

Before you start, run vcvars32.bat in the vc89\bin directory of your VC++
installation.
Probably:

> "C:\Program Files\Microsoft Visual Studio\vc98\bin\vcvars32.bat"

Then build libcurl.lib:

> cd curl-7.9\lib
> nmake -f Makefile.vc6

After that, build curl.exe:

> cd ..\src
> nmake -f Makefile.vc6

And there you have it!

Good luck!

/Linus
Received on 2001-10-08