MATLAB: Need help with: Error using “mex”

cMATLABmex

I am trying to run a script which requires mex. Earlier It was generating the below error
Error using mex
No supported compiler or SDK was found. For options, visit
http://www.mathworks.com/support/compilers/R2015a/win64.html.
Error in faster_rcnn_build (line 13)
mex -O -outdir bin ...
Above error got resolved after installing "Microsoft Windows SDK 7.1". I also had to restore the compiler as mentioned in this link because of some issue. Now I am stuck with this new error.
Error using mex
nms_mex.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\intrin.h(26) : fatal
error C1083: Cannot open include file: 'ammintrin.h': No such file or directory
Related Question