【问题标题】:An error when compiling using curlpp使用 curlpp 编译时出错
【发布时间】:2010-02-14 19:31:02
【问题描述】:

我尝试先编译simple example,然后看到编译错误:未定义引用`curlpp::Cleanup::Cleanup()'

在链接器选项中,我在命令行中写了curl-config --libs

$ curl-config --libs

-lcurl

我做错了什么?

【问题讨论】:

  • 这样的错误很多

标签: curl compiler-errors undefined-reference curlpp


【解决方案1】:

您不想将您的程序与纯 C curl (-lcurl) 链接,而是与 curlpp 链接!请改用-lcurlpp。您也可以拨打curlpp-config --libs

别忘了:curl(不带“pp”)是一个C库,C++库叫curlpp

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-08-05
    • 2017-11-22
    • 2016-10-27
    • 2016-05-28
    • 2017-10-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多