摘要: 当多个动态库中包含相同名字的全局对象时,会在exit的钩子多次注册,当程序退出时对象会析构多次,造成崩溃。 简单的例子: aaa.cpp : #include <string> std::string msg("fdsafasfsa"); ccc.cpp: int main(int argc,cha 阅读全文
posted @ 2020-04-08 11:13 gelare 阅读(306) 评论(0) 推荐(0)