PETSC headers

billy at billy at
Fri Feb 17 19:19:34 CST 2006

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


More information about the petsc-users mailing list