Compiling a C program with g++ 4.3.1 yields an error about std::FILE
tg at swox.com
Wed Jul 23 17:18:11 CEST 2008
Marc Glisse <marc.glisse at normalesup.org> writes:
If you are in the process of doing C++ portability patches, one I find
very important is the one about freefunc in gmpxx.h (use a typedef in
extern "C"). There are several versions by different people on the list
(it is just a couple lines), I can resend one if needed. The thing is that
all the std:: mess in gmp.h is easy to work around by including the C
headers (stddef.h, stdio.h, don't know which ones exactly) or some "using"
directives before gmp.h, never mind the pollution of the global namespace,
whereas I have to patch gmpxx.h before I can use it.
I am preparing GMP 4.2.3, and if you have some safe C++ portability
changes for that release, please sedn them to the list.
More information about the gmp-bugs