【问题标题】:Curl error while compiling program编译程序时出现卷曲错误
【发布时间】:2018-07-09 17:51:38
【问题描述】:

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

【问题讨论】:

    标签: curl


    【解决方案1】:

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

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

    undefined-reference-to-curl-easy-init

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

    【讨论】:

    • 可能只需要在编译器或链接器中添加-lcurl
    猜你喜欢
    • 1970-01-01
    • 2012-05-29
    • 2012-10-19
    • 1970-01-01
    • 2015-03-29
    • 1970-01-01
    • 1970-01-01
    • 2021-11-24
    • 1970-01-01
    相关资源
    最近更新 更多