[petsc-users] Problem in header file petscerror.h

Mohsin Iqbal mohsin139 at gmail.com
Fri May 31 11:43:30 CDT 2013


Hello,

I am compiling an application that is using petsc. *petsc-3.0.0-p12* is
installed in /opt/petsc. During the compilation I am getting this stream of
errors.

In file included from /opt/petsc/include/petsc.h:1353,
                 from /opt/petsc/include/petscis.h:7,
                 from /opt/petsc/include/petscvec.h:9,
                 from /opt/petsc/include/petscmat.h:6,
                 from /opt/petsc/include/petscpc.h:6,
                 from /opt/petsc/include/petscksp.h:6,
                 from
/root/resmgmt/applications/Malleability/Quadflow/quadflow/Library/flow_solver/Source/Include/petsc_c.h:17,
                 from Main/misc_dir/alloc_mem.c:4:
/opt/petsc/include/petscerror.h:320: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘PetscTruth’
/opt/petsc/include/petscerror.h:355: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘PetscTruth’
/opt/petsc/include/petscerror.h:398: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘PetscErrorCode’
In file included from /opt/petsc/include/petsc.h:1435,
                 from /opt/petsc/include/petscis.h:7,
                 from /opt/petsc/include/petscvec.h:9,
                 from /opt/petsc/include/petscmat.h:6,
                 from /opt/petsc/include/petscpc.h:6,
                 from /opt/petsc/include/petscksp.h:6,
                 from
/root/resmgmt/applications/Malleability/Quadflow/quadflow/Library/flow_solver/Source/Include/petsc_c.h:17,
                 from Main/misc_dir/alloc_mem.c:4:
/opt/petsc/include/petsclog.h:309: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘PetscErrorCode’
In file included from /opt/petsc/include/petscvec.h:9,
                 from /opt/petsc/include/petscmat.h:6,
                 from /opt/petsc/include/petscpc.h:6,
                 from /opt/petsc/include/petscksp.h:6,
                 from
/root/resmgmt/applications/Malleability/Quadflow/quadflow/Library/flow_solver/Source/Include/petsc_c.h:17,
                 from Main/misc_dir/alloc_mem.c:4:
/opt/petsc/include/petscis.h:127: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘PetscErrorCode’

Can someone give any clue to rectify this problem.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130531/f51b4b67/attachment.html>


More information about the petsc-users mailing list