OpenBabel 3.1.1 在 GCC-12的编译错误
2025-3-29 09:46
阅读:573
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
转载本文请联系原作者获取授权,同时请注明本文来自于湛科学网博客。
链接地址:https://wap.sciencenet.cn/blog-335764-1479795.html?mobile=1
收藏
上一篇
下一篇
当前推荐数:1
推荐人:
推荐到博客首页
网友评论1 条评论