title: Open .mat files in C
body: <p>I'm trying to write a C script able to open .mat files. The .mat files were written in Matlab 2015b 64-bit version. I'm using Visual Studio 2010 to compile the code. Here it is:</p>
  
  <pre><code>#include &lt;stdio.h&gt;              /*Std library*/
  #include "..\matlablib\mat.h"   /*provided by MathWorks*/
  
  int main(){
    MATFile * pMF;
  
    printf("Abrindo arquivo .mat...\n"); /*check (1)*/
    pMF = matOpen("teste.mat","r");
    printf("Arquivo .mat aberto.\n");    /*check (2)*/
    getch();
  }
  </code></pre>
  
  <p>As I compile this, I get the following message error:</p>
  
  <pre><code>matread.obj : error LNK2019: unresolved external symbol _matOpen
  referenced in function _main
  matread.exe : fatal error LNK1120: 1 unresolved externals
  </code></pre>
  
  <p>Have anyone had a similar problem before?</p>
  
  <p>Thanks in advance,</p>
  
  <p>Porto</p>