Is there a method to use gmpxx.h together with c++98?

走远了吗. 提交于 2019-12-02 19:45:56

问题


Because of my project I need to use c++98 and gmpxx.h:

But even for a simple project, it doesn't work:

#include <gmp.h>
#include <gmpxx.h>
int main()
{

    int xrange=5,yrange=5,component=5;

    return 0;
}

The error message is:

I tried using the following compiling methods

libc++: support c++11 and thus work

libstdc++: only support c++98 and do not work

Is there a way to use c++98 to implement gmpxx? thank you :)

Detail of errors when using c98++ to implement:

The breaking line is:
cout<<r<<endl;

But it works in c++11: The error report:

来源:https://stackoverflow.com/questions/25229930/is-there-a-method-to-use-gmpxx-h-together-with-c98

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!