<div>hi,</div>
<div>&nbsp;</div>
<div>i've managed to compile petsc on my sch's linux server. i've done both the shared and non-shared libraries. test examples worked fine. however when i tried to compile my own code which uses petsc in one of the module, it says &quot;can't find include file..... (all include files)&quot;.
</div>
<div>&nbsp;</div>
<div>my petsc_dir/petsc arch has already been set. i'm using intel fortran 7 (ifc) with gcc, because i get the error msg &quot;Fortran libraries cannot be used with C compiler&quot; when i tried ifc with icc. is there anyway to get around this?
</div>
<div>&nbsp;</div>
<div>anyway, how should my makefile be? currently my makefile for the petsc solver is</div>
<div>&nbsp;</div>
<div>petsc_sub.o : petsc_sub.F</div>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(f90) $(opt) petsc_sub.F</p>
<div>if i compiled as shared libraries, what other statements must i add? the current opt are</div>
<div>&nbsp;</div>
<div>&nbsp; -r8 -ip -w95 -c -static-libcxa -L/nas/lsftmp/g0306332/petsc-2.3.2-p6/<br>&nbsp;</div>
<div>&nbsp;</div>
<div>thank you very much</div>
<div>&nbsp;</div>
<div>regards</div>