Build error using pre-packaged GMP

Marc Glisse marc.glisse at
Thu May 27 09:24:54 UTC 2021

On Thu, 27 May 2021, Philip Höbler wrote:

> The gmp.h is indeed indirectly included as extern "C" {[...]} - in fact, 
> RELIC requires being included that way.


> Did I understand you correctly, that this would be a problem for GMP?

Yes, that's a problem.

The easiest workaround is to include gmp before.

#include <gmp.h>
extern "C" {
#include <relic/...>

Marc Glisse

More information about the gmp-bugs mailing list