title: Error using mex LINK : fatal error LNK1104: cannot open file 'libboost_date_time-vc140-mt-1_60.lib'
body: <p>I wrote a simple cpp program (1 source file) in VS2015 that uses some boost libraries. The program compiles and runs just fine in VS. I am trying to create a mex file in Matlab so that I can run the program from there. Here is the mex command I use:</p>
  
  <pre><code>mex -IC:\Users\Engineer\Documents\boost_1_60_0 Source.cpp
  </code></pre>
  
  <p>I then get the following error:</p>
  
  <p>Error using mex
  LINK : fatal error LNK1104: cannot open file
  'libboost_date_time-vc140-mt-1_60.lib'</p>
  
  <p>I know this file exists and I already tried building boost with runtime static linking. I've verified that mex is using VS2015 c++ compiler. Is there something else I should be doing here? Thanks!</p>