cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcURL build static lib

From: Ben Noordhuis <info_at_bnoordhuis.nl>
Date: Tue, 31 May 2011 17:29:51 +0200

On Tue, May 31, 2011 at 04:18, mammar <mammar_at_gmail.com> wrote:
> My apologies for top-posting Ben.
> Is it fine now?

Much better, thanks!

> Instead of linking with msvcrt.lib/msvcrt.a, can't we generate a
>  libcurl.lib file?

Just so we're on the same level: the libcurl.a is for all practical
means and purposes a .lib[1]. Since curl uses stdlib functions, you
also need msvcrt.a. Size-wise this is a non-issue because the linker
will only use the bits of both *.a files that it needs for the final
executable.

[1] It might in fact be an actual .lib with another extension but
that depends on the calling convention it's compiled with. Should be
__stdcall for win32 applications, I think.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-31