<p>The routine is spelled DMCreateMatrix()</p>
<div class="gmail_quote">On Sep 6, 2012 12:23 AM,  <<a href="mailto:0sabio00@gmail.com">0sabio00@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><font color="#333333" face="Lucida Grande, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif"><span style="line-height:18.200000762939453px">Thanks</span></font></div>



</blockquote></div>