curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Successfully build after 2 week struggle but...!

From: Gisle Vanem via curl-library <curl-library_at_cool.haxx.se>
Date: Sat, 26 Jan 2019 05:18:07 +0100

Himanshu Rastogi wrote:

> My configuration:
> *Included Library:* /libssl, libssh2, zlibwapi, libcrypo, nghttp2, Ws2_32, Wldap32, Normaliz, winmm./
> /*CFLAGS : /*MT/
> *Preprocessor macro: *CURL_STATICLIB
> *Compiler: VC15*
> *BUT!*
> After all these configuration it still show error messages like:
> *BUILD OUTPUT:*
> K4049: locally defined symbol __open imported
> libcurl.lib(mime.obj) : error LNK2019: unresolved external symbol __imp__access referenced in function _curl_mime_filedata

I suspect you have compiled files with both:
   cl -MT ... (for your code)
and:
   cl -MD ... (for libcurl code)

Try linking with 'link -verbose ...', redirect the output
and look for what CRT libraries pulls in.

> crypto.lib(e_capi.obj) : error LNK2019: unresolved external symbol __imp__CertOpenStore_at_20 referenced in function
> _capi_open_store

You need to ensure 'link ... crypt32.lib' is used.

-- 
--gv
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2019-01-26