编译程序时出现Curl错误

编译程序时出现Curl错误,curl,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):wvdecryp

我正在使用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'

你读过下面提到的这些文章吗

他们似乎在处理你的问题。 尝试检查您的libs/includes,看起来您需要在编译之前包含DCURL\u STATICLIB和/或一些其他依赖项。正如我所看到的,一些包丢失了你的C++解密工具。


可能只需要向编译器或链接器添加
-lcurl