how to include mpfr package in mingw w64 compiler?

2 ビュー (過去 30 日間)
KF
KF 2020 年 7 月 19 日
コメント済み: Walter Roberson 2020 年 7 月 21 日
I am trying to compile a mex file containing mpfr.h library with MinGW w64 compiler.
It gives me following error information:
fatal error: mpfr.h: No such file or directory
#include "mpfr.h"
^
compilation terminated.
The output of mex -setup is
MEX configured to use 'MinGW64 Compiler (C)' for C language compilation.
Is the MinGW64 Compiler has mpfr lib built in? if not, how I can inlcude this external library into the MingW64 Addon app?
  5 件のコメント
KF
KF 2020 年 7 月 21 日
Thanks again for your help! You are correct. The 32 bit version has it packaged already. For the 64 bit version, I ended up with installing gmp and mpfr lib with a seperate MSYS/MinGW64, then directed the MATLAB MinGW addon to search the build folder.
Does that sound a reasonable approach? The mex compilation went through for now. Is there anything I should be aware of? e.g. some rounding error or incompatibility issue?
Walter Roberson
Walter Roberson 2020 年 7 月 21 日
That sounds like a bit clumsy of an approach to install, but on the other hand it is something you had some guides available for, so it might have been someone easier for you than figuring out the pure MinGW approach. You got it done and that is the important thing ;-)

サインインしてコメントする。

回答 (0 件)

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by