2016-02-13 194 views
0

當執行一個程序發佈和讀取(在C++)網頁數據,我越來越編譯期間鏈接curl以下錯誤:捲曲鏈接問題

error LNK2019: unresolved external symbol __imp__curl_easy_cleanup referenced in function "public: __thiscall WebBrowser::WebBrowser(struct HWND__ *)" ([email protected]@[email protected][email protected]@@Z) 
error LNK2019: unresolved external symbol __imp__curl_easy_perform referenced in function "public: __thiscall WebBrowser::WebBrowser(struct HWND__ *)" ([email protected]@[email protected][email protected]@@Z) 
error LNK2019: unresolved external symbol __imp__curl_easy_setopt referenced in function "public: __thiscall WebBrowser::WebBrowser(struct HWND__ *)" ([email protected]@[email protected][email protected]@@Z) 
error LNK2019: unresolved external symbol __imp__curl_easy_init referenced in function "public: __thiscall WebBrowser::WebBrowser(struct HWND__ *)" ([email protected]@[email protected][email protected]@@Z) 

我使用的Visual Studio 2008年使用該命令編譯:

nmake /f Makefile.vc mode=static WITH_SSL=static WITH_DEVEL=C:\OpenSSL-Win32 VC=X ENABLE_SSPI=no ENABLE_IDN=no ENABLE_WINSSL=no DEBUG=no MACHINE=x86 GEN_PDB=no ENABLE_IPV6=yes 

這是值得注意的是,我用2015年的Visual Studio打造的包7.47.0

添加庫項目配置對話框:

Project->Properties (or Alt+F7),->Configuration properties->Linker->Input->Additional library dependencies. 

Project->Properties (or Alt+F7),->Configuration properties->Linker->General->Additional library directories 

請問該如何解決這個問題?

回答