Compiling a C program with g++ 4.3.1 yields an error about std::FILE

Vincent Lefevre vincent at
Tue Jun 10 11:06:32 CEST 2008

On 2008-06-10 09:27:50 +0200, Vincent Lefevre wrote:
> When I want to compile a C program that includes both <stdio.h>
> and <gmp.h> from GMP 4.2.2 (nothing else) with g++ 4.3.1 (no
> problem with g++ < 4.2.x and earlier), I get the error:
> /home/vlefevre/x86_64/gmp-debug/include/gmp.h:520: error: 'std::FILE' has not been declared

BTW, this bug has been fixed in Debian:

Vincent Lefèvre <vincent at> - Web: <>
100% accessible validated (X)HTML - Blog: <>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)

More information about the gmp-bugs mailing list