[petsc-users] missing libpetsc.a

0sabio00 at gmail.com 0sabio00 at gmail.com
Thu Sep 6 02:23:08 CDT 2012


I think i'm having a trouble linking to the petsc library.

gcc  main.cpp  -I /path to /petsc-3.3-p3/include -I /path
to/petsc-3.3-p3/arch-linux2-c-debug/include
-L/path to /petsc-3.3-p3/arch-linux2-c-debug/lib/ -lpetsc-o test

I get an error => DMGetMatrix not declared in this scope.

and I realized that I can't find libpetsc.a or libpetsc.so anywhere.  Where
is the petsc library exactly? if I find the location of the petsc library
and link it would it fix the problem?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120906/93fb23f9/attachment.html>


More information about the petsc-users mailing list