title: Matlab compiler (mcc) not including referenced functions
body: <p>I am trying to compile a matlab source file (.m) into a standalone application (on linux). In my .m file I am calling a function (specifically from a library called <a href="http://www.malsar.org/" rel="nofollow">MALSAR</a>) which in turn seem to be using some compiled libraries (.mexglx  .mexmaci64  .mexw32  .mexw64). When I compiled my source file, I included all the subdirectories under MALSAR package using "-I" option as follows</p>
  
  <p><code>mcc -mv -I &lt;dir1&gt; -I &lt;dir2&gt; .... myfile.m</code></p>
  
  <p>The compilation does not give an warnings, but when I execute the standalone executable, I get a <em>MATLAB:fileHasDisappeared</em> error. I am using <strong>mcc Version 4.18.</strong></p>
  
  <p>The detailed error out is included below. </p>
  
  <pre><code>The file
     '/home/acharuva/Projects/scot/ext/MALSAR/functions/joint_feature_learning/Logistic_L21.m'
     is not in the application's expanded CTF archive at
      '/home/acharuva/.mcrCache8.1/run_l20'.
  This is typically caused by calls to ADDPATH in your startup.m or matlabrc.m files. Please see the compiler documentation and use the ISDEPLOYED function to ensure ADDPATH commands are not executed by deployed applications.
  Previously accessible file "/home/acharuva/Projects/scot/ext/MALSAR/functions/joint_feature_learning/Logistic_L21.m" is now inaccessible.
  
  Error in run_l21_cross (line 34)
  
  MATLAB:fileHasDisappeared
  </code></pre>
  
  <p>Any help will be greatly appreciated. Thank you.</p>