小于的老巢分享 http://blog.sciencenet.cn/u/yuzhan 不喜无病呻吟,只爱直截了当

博文

OpenBabel 3.1.1 在 GCC-12的编译错误

已有 528 次阅读 2025-3-29 09:46 |个人分类:编程|系统分类:科研笔记

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


收藏 IP: 223.101.73.*| 热度|

1 许培扬

该博文允许注册用户评论 请点击登录 评论 (1 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2025-5-26 11:52

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部