竟然被这个全局难倒了a.hclass sample{};extern sample obj;a.cppsample obj; //定义test.cppextern sample obj;int main(){return 0;}链接后是错误的。请教原因?[解决办法]