On Tue, Feb 9, 2016 at 5:08 AM, John Maddock <jz.maddock@googlemail.com> wrote:

There is no static data in mpz_int being relied on here.

OK, but what is causing the initialization order issue?  Reordering definitions in the OP's code does not change the error, and the warning is coming from gmp.hpp.