Bill Allombert on Tue, 14 Jan 2003 14:07:09 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: how to include the u_FpM_inv() declaration


On Tue, Jan 14, 2003 at 10:44:56AM +0100, Ramón Casero Cañas wrote:
> Hi all. I have installed the pari alpha version 2.2.4 in a GNU/Linux woody
> kernel 2.4.18. First, the linker didn't find the -lpari, but I searched google
> and found an older message about it, so changing -lpari to -lpari-2.2 in my
> Makefile solved it.

My fault. That was a bad idea. I am working to fix that.

> But then, when I try to compile a code that uses the u_FpM_inv() function, I
> get a
> 
> g++ -o lib/gamatrix.o -c -Wall   -ftemplate-depth-50 gamatrix.cpp
> gamatrix.cpp: In function `bool inverse_mat_mod2(bool **, unsigned int,
> bool)':
> gamatrix.cpp:67: implicit declaration of function `int u_FpM_inv(...)'

There is no header files. Just use this definition:

GEN u_FpM_inv(GEN a, ulong p);

This is a private function.

Cheers,
Bill.