[petsc-dev] SLEPc symbols not found

Pierre Jolivet pierre.jolivet at enseeiht.fr
Wed Feb 5 14:16:22 CST 2020


Hello,
None of the packages with builtafterpetsc = 1 are explicitly linked by PETSc rules.
Thus, you need to add -lslepc after ${PETSC_LIB} in your makefile.

Thanks,
Pierre

> On 5 Feb 2020, at 9:06 PM, Jacob Faibussowitsch <jacob.fai at gmail.com> wrote:
> 
> Hello,
> 
> TL;DR: 
> Undefined symbols for architecture x86_64:
>   "_EPSCreate", referenced from:
>       _main in tightbinding.o
> ld: symbol(s) not found for architecture x86_64
> 
> I Installed SLEPc using PETSc with —download-slepc, then reconfigured and made. I also am (I think) correctly including the linking PETSc in the makefile, but still I get errors whenever I try to use any SLEPc functions. Included is my makefile, c program, and logs.
> 
> <makefile>
> <tightbinding.c>
> <configure.log>
> <make.log>
> 
> Best regards,
> 
> Jacob Faibussowitsch
> (Jacob Fai - booss - oh - vitch)
> Cell: (312) 694-3391
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20200205/fc8d88ea/attachment.html>


More information about the petsc-dev mailing list