1、检查mmp,是否有2个一样的cpp文件
2、
The solution for my post is that is.. I have defined the member functions in class.. I am safe guarding the header file
ifndef __SYM_H_
class abc{
int xyz()
{
// Done some thing here
}
};
#endif
The red defintion is the real culprit done the mistake to that error..
I posted the solution so that it will be useful to someone if they need help..
Happy Coding..
http://topic.youkuaiyun.com/u/20090319/11/70a7837c-314b-4232-a365-c436d70f954b.html
本文介绍了解决C++编程中出现的成员函数重复定义错误的方法。通过使用预处理器指令来避免头文件被多次包含导致的问题,并给出了具体的实现代码示例。

被折叠的 条评论
为什么被折叠?



