原因:源代码有重复,如头文件中没有添加只能被引用一次的标记
#ifndef _HEADER_H_
#define _HEADER_H_
// header file content
#endif
或者 写了类似#include "file.cpp"的代码!
原因:源代码有重复,如头文件中没有添加只能被引用一次的标记
#ifndef _HEADER_H_
#define _HEADER_H_
// header file content
#endif
或者 写了类似#include "file.cpp"的代码!
转载于:https://www.cnblogs.com/open-coder/archive/2012/09/10/2679323.html