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

Vincent Lefevre vincent at vinc17.org
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:

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=463187

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


More information about the gmp-bugs mailing list