Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GMP Installation

Status
Not open for further replies.

gijunior

Programmer
Feb 2, 2006
21
GB
Hiya peeps,

Just a quick q about Gnus Multi precision lib. Installed it on my mac no probs. But having trouble doing so on a windows based pc through UNIX.

Getting 5 out of 5 failed tests on th make check. which i believe gives the folowing error on compilation (knew it woulednt work, but was hoping that it might so tried to compile stuff)

In function `trialDivFact':
test.c:29: parse error before `p'
test.c:47: `p' undeclared (first use in this function)
test.c:47: (Each undeclared identifier is reported only once
test.c:47: for each function it appears in.)


mpz_init(x);
mpz_init(y);
mpz_init(z);

these lines preceed line 29


mpz_init(p);
and this is line 47.

Any help will be greatly appreciated and will have the reward of having me forever in their debt!

muchos thanks

john boy
 
What it is telling you is that p has not been declared. Have you scoped the declaration of p correctly?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top