原因:源代码有重复,如头文件中没有添加只能被引用一次的标记
#ifndef _HEADER_H_
#define _HEADER_H_
// header file content
#endif
或者 写了类似#include "file.cpp"的代码!