||
Deepin23(社区办)中自带的 GCC 12.2 在编译事OpenBabel 3.1.1 时会出现错误:“src/formats/CMakeFiles/asciiformat.dir/__/depict/asciipainter.cpp.o] error”
经查,是OB自身代码不严格所致。
解决办法见 Include <ctime> for clock() by heirecka · Pull Request #2529 · openbabel/openbabel · GitHub
在include/openbabel/obutil.h 中
#include <math.h>的前面加入 下面内容即可
#if HAVE_CLOCK_T
#include <ctime>
#endif
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2025-5-26 11:52
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社