link error

Jed Brown jed at
Thu Feb 12 02:34:14 CST 2009

On Wed 2009-02-11 22:35, Satish Balay wrote:
> Don't know cmake.
> You'll have to make sure 'all' compiler options used to compile the
> PETSc example are also used in your build system. If you miss
> something - you'll have to go back - and add it in.
> So:
> - look at the make output of compiling a PETSc example
> - look at the make output from compiling your code.
> - look for whats missing - and add it to your cmake stuff..

Yixun, please have a look at my FindPETSc.cmake module at

It should do the right thing with both shared and static libs.  Let me
know if you have any trouble with it.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <>

More information about the petsc-users mailing list