[petsc-users] Compilation of program including slepc

Jose E. Roman jroman at dsic.upv.es
Fri Feb 8 07:26:41 CST 2019


You need to create a makefile for your program or add rules to an existing makefile. See section 1.4.2 of SLEPc's user manual.
Jose


> El 8 feb 2019, a las 14:24, Eda Oktay via petsc-users <petsc-users at mcs.anl.gov> escribió:
> 
> Hello,
> 
> I installed SLEPc during configuration of PETSc and now I am trying to write a program in PETSc including SLEPc library. For start, I just duplicated ex11 in EPS folder in petsc-3.10.3/arch-linux2-c-debug/share/slepc/examples/src/eps/examples and renamed as eda.c and tried to compile it by "make eda" and I got the following error:
> 
> 
> 
> /home/edaoktay/petsc-3.10.3/arch-linux2-c-debug/bin/mpicc     eda.c   -o eda
> In file included from /home/edaoktay/petsc-3.10.3/arch-linux2-c-debug/include/slepcst.h:16:0,
>                  from /home/edaoktay/petsc-3.10.3/arch-linux2-c-debug/include/slepceps.h:16,
>                  from eda.c:17:
> /home/edaoktay/petsc-3.10.3/arch-linux2-c-debug/include/slepcsys.h:34:22: fatal error: petscmat.h: No such file or directory
>  #include <petscmat.h>
>                       ^
> compilation terminated.
> <builtin>: recipe for target 'eda' failed
> make: *** [eda] Error 1
> 
> 
> 
> I didn't understand the error since ex11 was compiled successfully but eda wasn't. Can you help me?
> 
> Best regards,
> 
> Eda



More information about the petsc-users mailing list