2016-02-13 191 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 

请问该如何解决这个问题?

回答