Linux安装编译mwget报错strcmp’ was not declared in this scope

博客讲述了在Linux环境下编译mwget时遇到的strcmp未声明错误,通过添加#include <cstring>解决了问题。尽管按提示操作后问题依然存在,但最终编译成功。
摘要由CSDN通过智能技术生成

1、问题

在执行make时报错


make  all-recursive
make[1]: Entering directory '/home/lj/software/mwget_0.1.0.orig'
Making all in mach-info
make[2]: Entering directory '/home/lj/software/mwget_0.1.0.orig/mach-info'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/lj/software/mwget_0.1.0.orig/mach-info'
Making all in src
make[2]: Entering directory '/home/lj/software/mwget_0.1.0.orig/src'
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT httpplugin.o -MD -MP -MF .deps/httpplugin.Tpo -c -o httpplugin.o httpplugin.cpp
httpplugin.cpp: In member function ‘virtual int HttpPlugin::get_info(Task*)’:
httpplugin.cpp:105:8: error: ‘strcmp’ was not declared in this scope
     if(strcmp(location, task->url.get_url()) == 0) break;
        ^~~~~~
httpplugin.cpp:105:8: note: ‘strcmp’ is defined in header ‘<cstring>’; did you forget to
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

静静喜欢大白

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值