Comple fails for Rosetta Code Task "Bernoulli numbers"; gmp.ads not found

Hi;

Regarding the Rosetta Code task “Bernoulli numbers”…

I am unable to compile the code.

The first clue is the the broken web link to a thick Ada binding of GMP specified above the Ada code.

So gmp.ads is not found, would make sense if there’s no reference to the thick GMP binding…

So, is this code broken entirely or can it be easily fixed?

Of course this fails with gnatmake directly because I have no library to specify with when using “-I”.

Using Alire doesn’t help because the thick binding is not found there either.

The web link “http://www.codeforge.com/article/422541” is broken.

I will continue to try using what is available from gnatcoll when using Alire, just haven’t figured it out yet.

Thanks,
Retired Build Engineer

If I had to guess, it probably used to point to this one: GitHub - ytomino/gmp-ada: GMP, MPFR and MPC interface library for gcc-Ada (GNAT)

It’s been around for a long time. Probably moved locations from codeforge. I didn’t take time to read through and match it to the rosetta code though to see for sure.

I think it’s adabindinggmpmpfr, which I found in the Google Code archive. That depends on Fractions, which I can’t find.

I thought to try GNATCOLL.GMP, but it quickly got ugly (Rational is limited), so not the sort of advertisement of Ada that we want on Rosetta.

The “Downloads” section has two snapshots containing fractions.ad[sb] files. I haven’t tried to compile anything, though.

https://code.google.com/archive/p/adabindinggmpmpfr/downloads