/home/tace/openav/source/SeamlessMessage/CPaoFlt.o: In function `CPaoFlt::get_m_strPrmair() const':CPaoFlt.cpp:(.text+0x0): multiple definition of `CPaoFlt::get_m_strPrmair() const'/home/tace/openav/source/SeamlessMessage/CPaoFlt.o:CPaoFlt.cpp:(.text…
C++ "multiple definition of .. first defined here" 在C++中,有时候需要在不同文件中使用同一个变量.对于这类变量如果处理不当,很容易出现"multiple definition of... first defined here"的错误. 例如,定义了如下3个文件:global.h, a.cpp, b.cpp //global.h: #ifndef _GLOBAL_H_ #define _GLOBAL_H_ cons…