PETSC headers
Satish Balay
balay at mcs.anl.gov
Fri Feb 17 22:15:23 CST 2006
Not sure what was fixed in patches..
Bill - can you reproduce this error with a PETSc example? [say
src/snes/examples/tutorials/ex1.c]
Satish
On Fri, 17 Feb 2006, Matthew Knepley wrote:
> billy at dem.uminho.pt writes:
>
> Do you have the latest patchlevel for 2.3.0? Also, we just released
> 2.3.1 and stringly recommend you upgrade since there are no interface changes.
> I think this problem was fixed in a patch.
>
> Matt
>
> > I added this line to my makefile:
> >
> > include $(PETSC_DIR)/bmake/common/base
> >
> > In my main.c file I added the header:
> >
> > #include "petsc.h"
> >
> > and it worked fine, but when I use instead:
> >
> > #include "petscao.h"
> > #include "petscsnes.h"
> >
> > I get the following errors during compilation:
> >
> > In file included from /home/billy/PETSC/petsc-2.3.0/include/petscao.h:8,
> > from source/main.c:50:
> > /home/billy/PETSC/petsc-2.3.0/include/petscis.h:167: error: parse error before
> > numeric constant
> > /home/billy/PETSC/petsc-2.3.0/include/petscis.h:167: warning: no semicolon at
> > end of struct or union
> > /home/billy/PETSC/petsc-2.3.0/include/petscis.h:172: error: parse error before
> > '}' token
> >
> >
> > Billy.
> >
> >
> >
>
>
More information about the petsc-users
mailing list