安装freecad出现cc_debugerror_post(funcname, "divide by zero error.", divider)解决办法

系统:manjaro

使用yaourt安装freecad的时候,需要安装coin,下载失败,按照提供的链接单独下载源码安装,安装过程中出现了

cc_debugerror_post(funcname, "divide by zero error.", divider);

的错误提示,在freecad论坛找到了答案

https://forum.freecadweb.org/viewtopic.php?t=15243

解决办法:
(1)找到报错的头文件/Coin-3.1.3/include/Inventor/SbBasic.h , 添加头文件#include <Inventor/C/errors/debugerror.h>

 ...
 *  Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
 *  http://www.sim.no/  [email protected]  [email protected]
 *
\**************************************************************************/

#include <Inventor/C/errors/debugerror.h>   //添加这行代码
#include <Inventor/C/basic.h>

/* ********************************************************************** */
/* Trap people trying to use Inventor headers while compiling C source code.
 * (we get support mail about this from time to time)
 ...

我用此方法解决了出现的错误问题

猜你喜欢

转载自blog.csdn.net/ouening/article/details/80058576
今日推荐