繁体   English   中英

strlen未在此范围内声明 - C ++

[英]strlen was not declared in this scope - C++

我需要在我的ubuntu中安装一个模拟器。 它是用C ++编写的,当我尝试运行make时,我得到此错误strlen was not declared in this scope 任何克服此错误的解决方案?

这应该这样做:

#include <cstring>
#include <cstring>

你的程序也可能正在寻找::strlen而不是std::strlen 如果是这种情况,请尝试

using std::strlen;

你安装了所需的所有包吗?

  1. 尝试g ++ --version,看看它是否有所作为。
  2. 检查/ usr / lib / include / for string.h。

如果那些东西不存在,您需要检查是否安装了正确的包。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM