卷曲链接问题
Curl link issue
在实现程序来发布和读取网页数据(以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
如何解决此问题?
库链接不正确。错误如下所示:使用 libcurl 链接程序时未解析的符号
相关文章:
- 静态数据成员的问题-修复链接错误会导致编译器错误
- 基于boost的程序的静态链接——zlib问题
- 使用jsoncpp库时出现链接问题
- Cmake 链接问题:未定义对 Button::mousePressEvent(QGraphicsSceneMouseE
- sqlite3 和生成文件中的链接出现问题
- 如何将GTest与CMake一起使用?遵循谷歌指南时的链接问题
- 未解决的外部链接问题
- 使用转换器提升 Python 问题 - 静态链接
- 'make check' GLIBC 运行时的链接问题
- 在树莓派上用libtorch构建程序时的链接问题
- QtCreator with C 库中的链接器问题
- 野牛弹性链接问题
- 与 AWS 开发工具包的链接问题
- 使用 NVIDIA GPU 在 Cygwin 中链接 OpenCL 库时遇到问题
- 为什么当我从语句检查中删除"+ mod"时,以下程序给出错误的答案。问题链接:https://www.codechef.com/problems/FFC219B
- PCL 和 CMake 的问题:链接时未定义统计异常值删除
- VC++使用gumbo查询时出现问题(链接错误)
- 使用CMake问题链接Boost(Ubuntu 14.04)
- MySQL连接器问题-链接等等
- MinGW 与 MSVC 的 dll 库问题链接(未定义的引用)