advanpix / mpreal

GNU General Public License v3.0
84 stars 19 forks source link

How to fix argument issues using VS2019 #20

Closed bashanbro closed 1 year ago

bashanbro commented 1 year ago

I am using this tutorial (https://www.youtube.com/watch?v=SoBVqS2lN7E) to try to compile mpfr-4.2.0 and mpir-3.0.0 as dll files on VS2019, all is fine. But when using the example of mpreal.h, get the following errors:

_Error C2660 "mpfr::mpreal::mpfr_srcptr": the function does not accept 1 argument D:\scitools\DevSoft\gmp\mpir\x64\Release\mpreal.h 590
Error C2660 "mpfrinit2": the function does not accept 1 argument D:\scitools\DevSoft\gmp\mpir\x64\Release\mpreal.h 590
Error (active) E0140 Too many arguments in function call D:\scitools\DevSoft\gmp\mpir\x64\Release\mpreal.h 590

Anyone know how to fix it?

advanpix commented 1 year ago

This issue was fixed a long time ago #7. Download MPFR C++ from github.