编译程序时出现卷曲错误

时间:2018-07-09 17:51:38

标签: curl

我正在使用mingw32构建项目,但是在编译源代码时出现以下错误。当我陷入困境时,请帮忙解决此问题。

CMakeFiles\ssd_wv.dir/objects.a(wvdecrypter.cpp.obj):wvdecrypter.cpp:(.text+0x1f86): undefined reference to `__imp_curl_global_init'
CMakeFiles\ssd_wv.dir/objects.a(wvdecrypter.cpp.obj):wvdecrypter.cpp:(.text+0x1f8c): undefined reference to `__imp_curl_easy_init'
CMakeFiles\ssd_wv.dir/objects.a(wvdecrypter.cpp.obj):wvdecrypter.cpp:(.text+0x1fab): undefined reference to `__imp_curl_easy_setopt'
CMakeFiles\ssd_wv.dir/objects.a(wvdecrypter.cpp.obj):wvdecrypter.cpp:(.text+0x2047): undefined reference to `__imp_curl_slist_append'
CMakeFiles\ssd_wv.dir/objects.a(wvdecrypter.cpp.obj):wvdecrypter.cpp:(.text+0x2a03): undefined reference to `__imp_curl_easy_perform'
CMakeFiles\ssd_wv.dir/objects.a(wvdecrypter.cpp.obj):wvdecrypter.cpp:(.text+0x2a21): undefined reference to `__imp_curl_easy_cleanup'

1 个答案:

答案 0 :(得分:0)

您阅读下面提到的这些文章了吗?

他们似乎处理了您的问题。 尝试检查您的库/包含文件,看起来您需要在编译之前包含 DCURL_STATICLIB 和/或其他一些依赖项。据我所知,您的C ++ 解密工具中缺少某些软件包。

undefined-reference-to-curl-easy-init

how-do-I-solve-these-libcurl-linking-errors?