title: Building libspline for Matlab on Windows - ambiguous call to overloaded function 'pow'
body: <p>I'm trying to build libspline for Matlab on Windows, available here:</p>
  
  <p><a href="http://ttic.uchicago.edu/~smaji/projects/libspline-release1.0.tar.gz" rel="nofollow">http://ttic.uchicago.edu/~smaji/projects/libspline-release1.0.tar.gz</a></p>
  
  <p>I get the following error:</p>
  
  <pre><code>&gt;&gt; make
  additiveModel.cpp 
  additiveModel.cpp(156) : error C2668: 'pow' : ambiguous call to overloaded function 
          C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\math.h(583): could be 'long double pow(long double,int)' 
          C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\math.h(535): or       'float pow(float,int)' 
          C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\math.h(497): or       'double pow(double,int)' 
          while trying to match the argument list '(int, int)' 
  
    C:\USR\ML\MATLAB~1\BIN\MEX.PL: Error: Compile of 'additiveModel.cpp' failed. 
  
  ??? Error using ==&gt; mex at 208
  Unable to complete successfully.
  
  Error in ==&gt; make at 4
  mex -O -largeArrayDims -c additiveModel.cpp
  </code></pre>
  
  <p>How to fix it?</p>