Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在运行 Win32 应用程序(它是基于谷歌测试的单元测试)。在运行结束时,打印测试摘要时,出现以下故障:
log4cplus:ERROR Re-initializing default context after it has already been destroyed. The memory will be leaked.
似乎 log4cplus 默认上下文已经被破坏了。知道如何防止它在我的所有消息都被打印之前被破坏吗?
main()我认为您正在从退出后调用的静态/全局对象的 dtors 中记录。log4cplus 不支持此功能。无法支持。
main()