[tbm at cyrius.com: Bug#441533: GCC 4.3 related: missing #includes]
Tim Van Holder
tim.vanholder at anubex.com
Mon Dec 10 19:56:21 CET 2007
Steve M. Robbins wrote:
> Hi,
>
> A Debian user has reported a missing #include in gmp.h.
>
> -Steve
>
> ----- Forwarded message from Martin Michlmayr <tbm at cyrius.com> -----
>
> [snip]
>> In file included from /build/tbm/kdeutils-3.5.8/./kcalc/knumber/knumber.h:23,
>> from /build/tbm/kdeutils-3.5.8/./kcalc/knumber/knumber.cpp:28,
>> from libknumber_la.all_cpp.cpp:2:
>> /usr/include/gmp.h:520: error: 'std::FILE' has not been declared
>
>
> --- old 2007-12-09 18:15:42.000000000 +0000
> +++ /usr/include/gmp.h 2007-12-09 18:16:06.000000000 +0000
> @@ -22,6 +22,7 @@
>
> #if defined (__cplusplus)
> #include <iosfwd> /* for std::istream, std::ostream, std::string */
> +#include <iostream> /* for std::FILE */
> #endif
std::FILE is the C++ way of referring to C's file - so I think the
correct include is <cstdio>, NOT <iostream>.
More information about the gmp-bugs
mailing list