错误C2039:'memchr':不是'`全局命名空间''的成员 [英] error C2039: 'memchr' : is not a member of '`global namespace''

查看:1881
本文介绍了错误C2039:'memchr':不是'`全局命名空间''的成员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这已经相当一段时间,因为我得到这个错误在标准< cstring>头文件没有明显的原因。谷歌搜索提出了很多答案,但没有一个工作。

It has been quite a while since I am getting this error in the standard <cstring> header file for no apparent reason. A google search brought up many answers but none of them worked.

推荐答案

这是一个愚蠢的错误!我在一个库项目中有一个名为String.h的文件,该文件由< cstring>标题。可能因为我添加了路径< String.h>作为一个额外的include目录在我的测试项目(我得到这个错误。)希望这有助于某人。

Ok I fixed it myself. It was a stupid mistake! I have a file called "String.h" in a library project which is being picked up by the <cstring> header. Probably because I have added the path to <String.h> as an additional include directory in my test project (where I am getting this error.) Hope this helps someone.

这篇关于错误C2039:'memchr':不是'`全局命名空间''的成员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆