c++ issues

Marc Glisse marc.glisse at loria.fr
Tue Mar 21 20:17:12 CET 2006


1)

the detection of FILE in gmp.h does not work on solaris with sun's
compiler. You may want to add _ISO_STDIO_ISO_H to the list. And then, in
c++, if cstdio was included, you only get std::FILE, not necessarily
::FILE, so there should be at least "using std::FILE;" or something
cleaner.

Not that I am really sure the whole testing for FILE business is a good
idea.

2)

In gmpxx.h, you use strlen so you should have a #include <cstring> as in
gmp-impl.h. In gmpxx.h it should be std::strlen, and in gmp-impl.h it
also needs to have std:: if it is compiled as c++.


-- 
Marc Glisse


More information about the gmp-bugs mailing list