title: Why I get "mpir_ui" was not declared in this scope?
body: <p>after installing mpir-3.0 on fedora 31. Now I try to build project:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;gmp.h&gt;
  #include &lt;mpir.h&gt;
  #include &lt;mpfr.h&gt;
  #include &lt;iostream&gt;
  using namespace std;
  
  
  
  int main(int argc, char* argv[])
  {
  
       mpf_t a;         //mpir float variable
       mpf_init(a);     //initialise a
       mpir_ui two = 2; //mpir unsigned integer variable
       FILE* stream;    //file type pointer to output on standard output (console)
       mpf_init_set_ui (a, 2);          //set value of a to 2
       mpf_out_str (stream, 10, 2, a); //output value of a
       cout &lt;&lt; "\nMPIR working" &lt;&lt; "\n" ;
  
  }
  </code></pre>
  
  <p>But when I compile it I get this error:</p>
  
  <pre><code>‘mpir_ui’ was not declared in this scope; did you mean ‘mpfr_ai’?|
  </code></pre>
  
  <p>I've used the flags:</p>
  
  <pre><code> -lmpir -lmpfr -lgmp
  </code></pre>