Bill Allombert on Sun, 01 Mar 2009 14:47:17 +0100


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

Re: level0.h missing


On Sat, Feb 28, 2009 at 06:33:42PM -0500, Adam Sikora wrote:
> >> Do you have any suggestion how to resolve that error?
> >> Is there anybody who was able to use pari library with C++ under Windows XP?
> >
> > What is the error exactly ?
> >
> > The problem with src/kernel/ix86/level0.h is already fixed in the SVN
> > repository for both branchs.
> 
> I am trying to use PARI library in C++ program under Win XP.

I am afraid I ma not going to be of much help since I never used Win XP,
but I think you should have much success by using g++ under cygwin than
with any other combination under XP. How did you install PARI/GP ?

> I placed #include <pari.h> in the code and got a compiler error:
> "../src/kernel/ix86/level0.h: No such file or directory."

Programs should not use #include <pari.h>, but 
#include <pari/pari.h>, and PARI headers should be installed in 
a pari subdirectory (e.g. /usr/include/pari under UNIX)

> The directory  "../src/kernel/ix86/" is listed among "include
> directories" for the compiler.

This should not be: src/kernel/ix86/ is part of the source, and not
of the installed header file.
The content of the file src/kernel/ix86/asm0.h a.k.a.
src/kernel/ix86/level0.h is included in the automatically generated
header file pari/pariinl.h.

Cheers,
Bill.