title: Using GotoBLAS2 with C
body: <p>I'm sort of a newbie to C coding but I've written a Matlab program for simulating neural networks and I wish to translate it to C code because our supercomputer cluster won't allow running more than a few Matlab simulations at once.  To that end, I've found GotoBLAS to take care of the matrix math.  </p>
  
  <p>Unfortunately I'm not sure how to use it as I don't have a lot of experience in C and using external libraries.  I'm assuming that 'dgemm' is a function in GotoBLAS from reading the BLAS guide pdf.  I've been able to successfully compile GotoBLAS, but when I do:</p>
  
  <pre><code>gcc -o outputprog main.c -Wall -L -lgoto2.a
  </code></pre>
  
  <p>I get the messages: </p>
  
  <pre><code>undefined reference to 'dgemm'
  </code></pre>
  
  <p>As I understand it, I should be including some <code>.h</code> file (or maybe not) from GotoBLAS but I'm not sure which one (or if this is right at all).</p>
  
  <p>Any help with this would be appreciated.  Let me know if more information is needed.</p>