Bill Allombert on Sun, 14 Dec 2008 18:19:46 +0100


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

Re: Programming PARI/GP in library mode [PROBLEM] !?!


On Sun, Dec 14, 2008 at 05:51:21PM +0100, Mxmler wrote:
> Hi all,
> 
> #include <pari.h>
> int main()
> {
> pari_init(100000,0);
> return 0;
> }
> 
> and all what I got is an error messages (the main one: No such file or
> directory for pari.h)

Hello,

You should use
#include <pari/pari.h>

If you use #include <pari.h>, you need to pass -I/usr/include/pari to
the compiler.

> Can you help me please and show me step by step how to make this done?
> Do I need to add linkage between my app. and the library?

You should link against -lpari.

Cheers
Bill.