【问题标题】:Curl link issue卷曲链接问题
【发布时间】:2016-02-13 19:50:24
【问题描述】:

在实现发布和读取网页数据的程序(使用 C++)时,在编译期间链接 curl 时出现以下错误:

error LNK2019: unresolved external symbol __imp__curl_easy_cleanup referenced in function "public: __thiscall WebBrowser::WebBrowser(struct HWND__ *)" (??0WebBrowser@@QAE@PAUHWND__@@@Z)
error LNK2019: unresolved external symbol __imp__curl_easy_perform referenced in function "public: __thiscall WebBrowser::WebBrowser(struct HWND__ *)" (??0WebBrowser@@QAE@PAUHWND__@@@Z)
error LNK2019: unresolved external symbol __imp__curl_easy_setopt referenced in function "public: __thiscall WebBrowser::WebBrowser(struct HWND__ *)" (??0WebBrowser@@QAE@PAUHWND__@@@Z)
error LNK2019: unresolved external symbol __imp__curl_easy_init referenced in function "public: __thiscall WebBrowser::WebBrowser(struct HWND__ *)" (??0WebBrowser@@QAE@PAUHWND__@@@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

我该如何解决这个问题?

【问题讨论】:

    标签: php c++ curl


    【解决方案1】:

    库未正确链接。 该错误类似于以下内容: Unresolved symbols when linking a program using libcurl

    【讨论】:

      猜你喜欢
      • 2016-02-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-24
      • 2016-02-07
      相关资源
      最近更新 更多