stdio.h

Paul Zimmermann Paul.Zimmermann at inria.fr
Mon Aug 22 14:17:08 CEST 2022


       Hi,

the fine manual says:

   All declarations needed to use GMP are collected in the include file
   'gmp.h'.  It is designed to work with both C and C++ compilers.

	#include <gmp.h>

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

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

What is the reason why <stdio.h> is not included by default?

Best regards,
Paul


More information about the gmp-devel mailing list