curl / Mailing Lists / curl-library / Single Mail

curl-library

Successfully build after 2 week struggle but...!

From: Himanshu Rastogi via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 25 Jan 2019 19:20:18 +0530

Hi,
This is Himanshu from somewhere. I successfully build *windows x86 static
libcurl library* after struggling for two week. I'm new to building
libraries but at the end it build. I build all dependencies statically like:
*zlib > openssl > openssh > nghttp2 > libcurl.*
But when i try to link it to my simple example in qt-creator it is showing
some error messages.
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
OLDNAMES.lib(access.obi) : error LNK2001: unresolved external symbol
__imp__access
libcurl.lib(warnless.obj) : error LNK2019: unresolved external symbol
__imp__read referenced in function _curlx_read
OLDNAMES.lib(read.obi) : error LNK2001: unresolved external symbol
__imp__read
libcurl.lib(warnless.obj) : error LNK2019: unresolved external symbol
__imp__write referenced in function _curlx_write
OLDNAMES.lib(write.obi) : error LNK2001: unresolved external symbol
__imp__write
libcurl.lib(file.obj) : error LNK2019: unresolved external symbol
__imp__close referenced in function _file_done
OLDNAMES.lib(close.obi) : error LNK2001: unresolved external symbol
__imp__close
libcurl.lib(file.obj) : error LNK2019: unresolved external symbol
__imp__open referenced in function _file_connect
OLDNAMES.lib(open.obi) : error LNK2001: unresolved external symbol
__imp__open
libcurl.lib(smb.obj) : error LNK2019: unresolved external symbol
__imp___getpid referenced in function _smb_format_message
libcurl.lib(system_win32.obj) : error LNK2019: unresolved external symbol
__imp___mbspbrk referenced in function _Curl_load_library
crypto.lib(e_capi.obj) : error LNK2019: unresolved external symbol
__imp__CertOpenStore_at_20 referenced in function _capi_open_store
crypto.lib(e_capi.obj) : error LNK2019: unresolved external symbol
__imp__CertCloseStore_at_8 referenced in function _capi_find_key
crypto.lib(e_capi.obj) : error LNK2019: unresolved external symbol
__imp__CertEnumCertificatesInStore_at_8 referenced in function _capi_find_cert
crypto.lib(e_capi.obj) : error LNK2019: unresolved external symbol
__imp__CertFindCertificateInStore_at_24 referenced in function _capi_find_cert
crypto.lib(e_capi.obj) : error LNK2019: unresolved external symbol
__imp__CertDuplicateCertificateContext_at_4 referenced in function
_capi_load_ssl_client_cert
crypto.lib(e_capi.obj) : error LNK2019: unresolved external symbol
__imp__CertFreeCertificateContext_at_4 referenced in function _capi_dsa_free
crypto.lib(e_capi.obj) : error LNK2019: unresolved external symbol
__imp__CertGetCertificateContextProperty_at_16 referenced in function
_capi_cert_get_fname
OLDNAMES.lib(access.obi) : error LNK2001: unresolved external symbol
__imp___access
MSVCRT.lib(chandler4gs.obj) : error LNK2019: unresolved external symbol
__except_handler4_common referenced in function __except_handler4
release\CurlLib2UploadFile.exe : fatal error LNK1120: 16 unresolved
externals
jom:
E:\Kobil_App\Examples\Curl_Lib_Examples\build-CurlLib2UploadFile-VC15_Kobil_Static-Release\Makefile.Release
[release\CurlLib2UploadFile.exe] Error 1120
jom:
E:\Kobil_App\Examples\Curl_Lib_Examples\build-CurlLib2UploadFile-VC15_Kobil_Static-Release\Makefile
[release] Error 2
18:52:36: The process "D:\QT\5.9.3\Tools\QtCreator\bin\jom.exe" exited with
code 2.
Error while building/deploying project CurlLib2UploadFile (kit:
VC15_Kobil_Static)
The kit VC15_Kobil_Static has configuration issues which might be the root
cause for this problem.
When executing step "Make"
18:52:37: Elapsed time: 00:04.

*It will realy greatful you tell me the where am i wrong.*
*It is really impressing you developed libssh2 too. I know you developed
other libraries but right now i have to work on it.*
*If you are in IRC then reply me with you account .*
*Waiting for your reply.*
*Thank You.*

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