Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to create a makefile to use the mpir and mpfr libraries
    primarykey
    data
    text
    <p>I've recently written a C program which uses the public-domain mpir and mpfr libraries. I've been compiling it on Windows, using the Microsoft Visual C++ 10.0 compiler. To get that to work, I had to do the following: </p> <ul> <li>Download / build the mpir and mpfr libraries from <a href="http://gladman.plushost.co.uk/oldsite/computing/gmp4win.php" rel="nofollow">http://gladman.plushost.co.uk/oldsite/computing/gmp4win.php</a></li> <li>Move the files <code>mpir.h</code> and <code>mpfr.h</code> into the Include directory for the Microsoft compiler</li> <li>Move the files <code>mpir.lib</code>, <code>mpir.pdb</code>, <code>mpfr.lib</code> and <code>mpfr.pdb</code> into the lib directory for the Microsoft compiler</li> <li><code>#include</code> <code>mpir.h</code> and <code>mpfr.h</code> in the program</li> <li>Compile using <code>cl &lt;..module names..&gt; /link mpir.lib mpfr.lib</code></li> </ul> <p>I now want to send the source / header files I've written to someone else, along with a makefile that they can use to compile the code and check that it works. Since that person won't have the mpir / mpfr libraries installed, and might not be using the same compiler, I'm not quite sure how to do this. </p> <p>Here is what I can do:</p> <ul> <li>Send them the binaries <code>mpir.lib</code>, <code>mpir.pdb</code>, <code>mpfr.lib</code> and <code>mpfr.pdb</code> as well as the source / header files.</li> </ul> <p>Here is what I can't do:</p> <ul> <li>Send them my entire Microsoft Visual C++ 10.0 setup</li> <li>Ask them to stick files in their <code>Include</code> and <code>lib</code> directories (unless there's no other way)</li> </ul> <p>Ideally, I should be able to send them the source/header files, together with the pertinent mpir/mpfr binaries, and a makefile which they can then run to build the program. </p> <p>Thanks in advance for your help!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload