[petsc-users] petsc linking error with MatSetType
Kyunghoon Lee
aeronova.mailing at gmail.com
Sun Aug 12 23:10:34 CDT 2012
Hi all,
I got the following linking error when I was building libmesh:
/homehome//aeronova/aeronova/
Development/Developmentlocal//localshare//sharelibmesh//libmesh/liblib//x86_64-unknownx86_64--unknown-linux-linux-gnu_dbg/gnu_dbg/libmesh.so:libmesh.so
undefined : referenceundefined referenceto ` to `MatSetType(_p_Mat*, char
const*)'MatSetType(_p_Mat*, char const*)'
/
/home/aeronovahome//Developmentaeronova/Development//locallocal//share/libmeshshare//lib/libmesh/x86_64-unknownlib/-x86_64-unknownlinux--linuxgnu_dbg/-libmesh.so:
gnu_dbg/undefined referencelibmesh.so: to `
undefinedEPSSetTolerances(_p_EPS*, double, int)'
reference/ home/toaeronova/ `DevelopmentEPSSetTolerances(_p_EPS*, double,
int)'/local/
/share/libmeshhome//libaeronova//x86_64Development/-local/unknownshare/libmesh-linux/lib/-x86_64-gnu_dbg/libmesh.sounknown-:
linux-gnu_dbgundefined/libmesh.so reference : toundefined reference `
VecScatterEnd(_p_VecScatter*, _p_Vec*, _p_Vec*, InsertMode, ScatterMode)to'
`/VecScatterEnd(_p_VecScatter*, _p_Vec*, _p_Vec*, InsertMode,
ScatterMode)home/'aeronova
/Development/home//localaeronova/Development//localshare//libmeshshare//liblibmesh/x86_64/lib/-unknownx86_64-unknown--linuxlinux--gnu_dbg/gnu_dbglibmesh.so:
/libmesh.soundefined: undefined reference reference to
to`SNESGetLinearSolveIterations(_p_SNES*, int*) '
`SNESGetLinearSolveIterations(_p_SNES*, int*)/home'
It looks like I'm missing some libraries in my petsc, but I'm not sure how
to resolve the link problem. My petsc configuration is
./configure --download-mpich=1 --download-blacs=1 --download-parmetis=1
--download-scalapack=1 --download-mumps=1 --download-umfpack=1
--with-clanguage=C++
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120813/866ae3c9/attachment.html>
More information about the petsc-users
mailing list