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

问题描述

hi


最近当我在VS 2010中编写c ++程序时,我开始收到错误

hi
Recently when I was writing c++ programs in VS 2010 I started getting the error
"

error c2039 is not a member of global namespace





为什么会发生这种情况?



我尝试了什么:



它被解决为我改变了我的#include指令的顺序。我的头文件已关闭,标准头文件上升。问题得到了解决。我很幸运能够在某个地方读过这个或者说,正在冥想帮助我。

" on separating the interface and implementation.

why would this happen?

What I have tried:

it was resolved as sooon as i changed the order of my # include directives. My header files went down and standard header files went up. the issue was resolved. I was lucky to have read this somewhere or may be, being meditative helped me.

推荐答案



这篇关于C ++错误解决方案c2039不是全局命名空间的成员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-28 06:21
查看更多