curl-library
Re: libcURL build static lib
Date: Tue, 31 May 2011 07:18:53 +0500
On Mon, May 30, 2011 at 7:47 PM, Ben Noordhuis <info_at_bnoordhuis.nl> wrote:
> On Mon, May 30, 2011 at 16:42, mammar <mammar_at_gmail.com> wrote:
> > Thanks for reply.
> > But i am getting the following link errors with VS
> > libcurl.a(libcurl_la-transfer.o) : error LNK2001: unresolved external
> symbol
> > ___divdi3
> > libcurl.a(libcurl_la-progress.o) : error LNK2001: unresolved external
> symbol
> > ___divdi3
> > libcurl.a(libcurl_la-imap.o) : error LNK2001: unresolved external symbol
> > _strtoll
> > libcurl.a(libcurl_la-http_proxy.o) : error LNK2001: unresolved external
> > symbol _strtoll
> > libcurl.a(libcurl_la-ftplistparser.o) : error LNK2001: unresolved
> external
> > symbol _strtoll
> > libcurl.a(libcurl_la-cookie.o) : error LNK2001: unresolved external
> symbol
> > _strtoll
> > libcurl.a(libcurl_la-http.o) : error LNK2001: unresolved external symbol
> > _strtoll
> > libcurl.a(libcurl_la-ftp.o) : error LNK2001: unresolved external symbol
> > _strtoll
> > libcurl.a(libcurl_la-file.o) : error LNK2001: unresolved external symbol
> > _strtoll
> > libcurl.a(libcurl_la-mprintf.o) : error LNK2001: unresolved external
> symbol
> > ___umoddi3
> > libcurl.a(libcurl_la-mprintf.o) : error LNK2001: unresolved external
> symbol
> > ___udivdi3
> > libcurl.a(libcurl_la-formdata.o) : error LNK2001: unresolved external
> symbol
> > ___chkstk
> > libcurl.a(libcurl_la-formdata.o) : error LNK2001: unresolved external
> symbol
> > _basename
>
> You know that top-posting is a mortal sin, don't you? ;-)
>
> I suspect that you need to link against msvcrt.lib / msvcrt.a, the
> unresolved symbols are stdlib functions.
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
My apologies for top-posting Ben.
Is it fine now?
Instead of linking with msvcrt.lib/msvcrt.a, can't we generate a libcurl.lib
file?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-31