【问题标题】:about compilation error in Visual C++关于 Visual C++ 中的编译错误
【发布时间】:2009-08-17 16:04:17
【问题描述】:

错误 1 ​​错误 C2039: 'memchr' : is not a member of '`global namespace'' c:\program files\microsoft visual studio 9.0\vc\include\cstring 19 new project 17

【问题讨论】:

  • 您确定标签:“python”、“C#”和“ruby”吗?
  • 我已经为你重新标记了一些希望对你有帮助的东西:)
  • 奇怪,这是系统标头中的错误。听起来像是一个错误的项目配置。

标签: c++ visual-c++ include


【解决方案1】:

您包含标题。这在 std 命名空间中声明了 memchr 函数。因此,您要么包含 string.h 或 memory.h 标头而不是 cstring,要么在调用 memchr 时使用 std 命名空间。

【讨论】:

    【解决方案2】:

    听起来你在某处的namespace 中有一个#include 指令。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-09-28
      • 1970-01-01
      • 1970-01-01
      • 2010-10-09
      • 1970-01-01
      • 2010-11-26
      • 1970-01-01
      相关资源
      最近更新 更多