title: Trying to Compile a C mex file in MatLab
body: <p>Hey trying to compile one C-file in MatLab, but I got this error and I'm trying to make sense of it. Any and all guidance is greatly appreciated.</p>
  
  <pre><code>&gt;&gt; mex BDS_unpack_mex5.c
  xcrun: error: SDK "macosx10.7" cannot be located
  clang: warning: no such sysroot directory: '-mmacosx-version-min=10.7'
  BDS_unpack_mex5.c:17:10: fatal error: 'math.h' file not found
  #include &lt;math.h&gt;
       ^
  1 error generated.
  
  mex: compile of ' "BDS_unpack_mex5.c"' failed.
  
  Error using mex (line 206)
  Unable to complete successfully.
  </code></pre>