简体   繁体   中英

How to use boost::multiprecision::float128 in visual studio 2010

I am trying to use boost::multiprecision::float128 in visual studio 2010. I found this link

How to make boost multiprecision library work in Visual Studio 2010?

But still i am getting errors.

1>c:\\mingw\\lib\\gcc\\mingw32\\4.8.1\\include\\quadmath.h(32): error C2144: syntax error : 'float' should be preceded by ';'

1>c:\\mingw\\lib\\gcc\\mingw32\\4.8.1\\include\\quadmath.h(32): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

What are the exact steps to be followed. A Complete step by step guide would be very helpful.

The float128 number type in Boost is a very thin wrapper around GCC's __float128 or Intel's _Quad data types. This means that you would need GCC or Intel C++ compiler. It does not work on Microsoft Visual C++.

Please refer to this link for solution x86-64 long double precision

Ultimately, this whole "pull in quadmath.h from GCC" thing is an unsupported hack, and it may that the previous guys simply got lucky with coincidentally-compatible versions.... and that you didn't. I would probably advise using another library that's officially supported in VS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM