[petsc-dev] petsc/master: unable to link in C++ with last night PETSC_WITH_EXTERNAL_LIB variable changes

Jed Brown jed at jedbrown.org
Sat Feb 10 15:49:38 CST 2018


Éric Chamberland <Eric.Chamberland at giref.ulaval.ca> writes:

> oh my, looks like "-lpetsc -lmpi" works for us!!!
>
> (sounds of head banging on desk)

This should work any time libpetsc is a shared library.  You'll need the
whole grotesque link line if you need to link statically.


More information about the petsc-dev mailing list