在编译php的bcmath模块时,会出现类似下面的错误:
error: '_zero_' undeclared (first use in this function)
这是因为bcmath的代码bug引起的,编辑bcmath的“libbcmath/src/bcmath.h”文件,在“#include "bcmath.h”之前插入以下内容:
#include "../../config.h"
这样就能顺利通过编译了。
本文介绍了解决在编译PHP的bcmath模块时出现的“_zero_ undeclared”错误的方法。该问题是由于bcmath代码中的bug引起,解决办法是在“bcmath.h”文件的“#includebcmath.h”前加入“#include../../config.h”。
在编译php的bcmath模块时,会出现类似下面的错误:
error: '_zero_' undeclared (first use in this function)
这是因为bcmath的代码bug引起的,编辑bcmath的“libbcmath/src/bcmath.h”文件,在“#include "bcmath.h”之前插入以下内容:
#include "../../config.h"
这样就能顺利通过编译了。
1321
2132

被折叠的 条评论
为什么被折叠?