__GMP_WITHIN_GMP error when building mpc-0.9 as dynamic library

Marc Glisse marc.glisse at inria.fr
Fri Feb 17 18:19:42 CET 2012


On Fri, 17 Feb 2012, Andreas Enge wrote:

> The idea is normally to catch problems in mpc, not in its dependencies...

ok.

> Strangely, the warning message occurs only with Mingw and not with
> GNU/Linux.

I didn't try compiling mpc, but on a trivial test:

stedding /tmp $ cat p.cc
#if plouf
#endif
stedding /tmp $ g++ p.cc -Wundef -P -E
p.cc:1:5: warning: "plouf" is not defined [-Wundef]

Note that if gmp is installed in a system directory, that might inhibit 
the warning.

-- 
Marc Glisse


More information about the gmp-bugs mailing list