gmp-6.1.2 Bug Report (gmp_fprintf(), "implicit declaration of function" warning)

Niels Möller nisse at lysator.liu.se
Sun Apr 21 07:55:33 UTC 2019


"mlg ." <mlg556 at gmail.com> writes:

> Long story short, with gcc, the function/macro "gmp_fprintf()" gives
> an"implicit declaration of function" warning. Please see the attached file
> for the complete report.

See
https://gmplib.org/manual/Headers-and-Libraries.html#Headers-and-Libraries.

: Note however that prototypes for GMP functions with FILE * parameters
: are only provided if <stdio.h> is included too. 

> #include <gmp.h>
> #include <stdio.h>

These two includes need to be in the opposite order.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.


More information about the gmp-bugs mailing list