<div>I think i'm having a trouble linking to the petsc library.</div><div><br></div><div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><font color="#333333" face="Lucida Grande, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif"><span style="line-height:18.200000762939453px">gcc main.cpp -I /path to /petsc-3.3-p3/include -I /path to/petsc-3.3-p3/arch-linux2-c-debug/include </span></font></div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><font color="#333333" face="Lucida Grande, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif"><span style="line-height:18.200000762939453px">-L/path to /petsc-3.3-p3/arch-linux2-c-debug/lib/ -lpetsc-o test </span></font></div>
</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><font color="#333333" face="Lucida Grande, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif"><span style="line-height:18.200000762939453px"><br>
</span></font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><font color="#333333" face="Lucida Grande, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif"><span style="line-height:18.200000762939453px">I get an error => DMGetMatrix not declared in this scope. </span></font></div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><font color="#333333" face="Lucida Grande, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif"><span style="line-height:18.200000762939453px"><br>
</span></font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><font color="#333333" face="Lucida Grande, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif"><span style="line-height:18.200000762939453px">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?</span></font></div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><font color="#333333" face="Lucida Grande, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif"><span style="line-height:18.200000762939453px"><br>
</span></font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><font color="#333333" face="Lucida Grande, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif"><span style="line-height:18.200000762939453px">Thanks</span></font></div>