<div dir="ltr">Hello,<div><br></div><div>I am compiling an application that is using petsc. <b>petsc-3.0.0-p12</b> is installed in /opt/petsc. During the compilation I am getting this stream of errors.</div><div><br></div>

<div><div><div>In file included from /opt/petsc/include/petsc.h:1353,</div><div>                 from /opt/petsc/include/petscis.h:7,</div><div>                 from /opt/petsc/include/petscvec.h:9,</div><div>                 from /opt/petsc/include/petscmat.h:6,</div>
<div>                 from /opt/petsc/include/petscpc.h:6,</div><div>                 from /opt/petsc/include/petscksp.h:6,</div><div>                 from /root/resmgmt/applications/Malleability/Quadflow/quadflow/Library/flow_solver/Source/Include/petsc_c.h:17,</div>
<div>                 from Main/misc_dir/alloc_mem.c:4:</div><div>/opt/petsc/include/petscerror.h:320: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PetscTruth’</div><div>/opt/petsc/include/petscerror.h:355: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PetscTruth’</div>
<div>/opt/petsc/include/petscerror.h:398: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PetscErrorCode’</div><div>In file included from /opt/petsc/include/petsc.h:1435,</div><div>                 from /opt/petsc/include/petscis.h:7,</div>
<div>                 from /opt/petsc/include/petscvec.h:9,</div><div>                 from /opt/petsc/include/petscmat.h:6,</div><div>                 from /opt/petsc/include/petscpc.h:6,</div><div>                 from /opt/petsc/include/petscksp.h:6,</div>
<div>                 from /root/resmgmt/applications/Malleability/Quadflow/quadflow/Library/flow_solver/Source/Include/petsc_c.h:17,</div><div>                 from Main/misc_dir/alloc_mem.c:4:</div><div>/opt/petsc/include/petsclog.h:309: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PetscErrorCode’</div>
<div>In file included from /opt/petsc/include/petscvec.h:9,</div><div>                 from /opt/petsc/include/petscmat.h:6,</div><div>                 from /opt/petsc/include/petscpc.h:6,</div><div>                 from /opt/petsc/include/petscksp.h:6,</div>
<div>                 from /root/resmgmt/applications/Malleability/Quadflow/quadflow/Library/flow_solver/Source/Include/petsc_c.h:17,</div><div>                 from Main/misc_dir/alloc_mem.c:4:</div><div>/opt/petsc/include/petscis.h:127: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PetscErrorCode’</div>
</div><div><br></div><div>
Can someone give any clue to rectify this problem.</div></div><div><br></div><div style>Thanks.</div></div>