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

Torbjorn Granlund tg at swox.com
Tue Aug 12 16:04:05 CEST 2008


Marc Glisse <marc.glisse at normalesup.org> writes:

  > At the beginning of the file:
  >
  > #if defined (__cplusplus)
  > #include <iosfwd>   /* for std::istream, std::ostream, std::string */
  > #include <cstdio>
  > #endif
  >
  > And around line 520:
  >
  > #if defined (__cplusplus)
  > extern "C" {
  > using std::FILE;
  > #endif
  
  Apparently this was forgotten for 4.2.3.
  
You seem to be right.  I seem to have made the change half done.
Sorry about that.

  I also noticed that if I use the Sun compiler on linux-x86 (the compiler 
  is common for x86 and x86_64), configure choses ABI=64, which obviously 
  fails. Well I just set ABI=32 and there is no problem.
  
Could you please give some more details?  This sounds like a flaw in
GMP's configure system.  (Perhaps file a separate, complete bug
report.)

-- 
Torbjörn


More information about the gmp-bugs mailing list