Simple C++ Compile Error

Torbjorn Granlund tg at swox.com
Tue Aug 12 16:35:38 CEST 2008


  > Would it not make sense for gmpxx.h to include gmp.h with '#include
  > "gmp.h"'?
  > That way, no matter how you include gmpxx.h, it will prefer the gmp.h
  > that sits alongside it.
  
  I don't like it (but I don't decide).

What don't you like?  What ought to change?

  However, having a test in gmpxx that 
  checks whether the version of gmp.h included matches and outputs a warning 
  (not an error, there can always be good reasons to do strange things) 
  otherwise would help diagnose this kind of issue.
  
That's a good idea.  

-- 
Torbjörn


More information about the gmp-bugs mailing list