由于我的项目,我需要使用 c++98 和 gmpxx.h:
但即使对于一个简单的项目,它也不起作用:
#include <gmp.h>
#include <gmpxx.h>
int main()
{
int xrange=5,yrange=5,component=5;
return 0;
}
The error message is:
我尝试使用以下编译方法
libc++:支持 c++11,因此可以工作
libstdc++:仅支持c++98并且不起作用
有没有办法使用c++98来实现gmpxx?谢谢 :)
Detail of errors when using c98++ to implement:
The breaking line is:
cout<<r<<endl;
But it works in c++11:
The error report:
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)