maybe the problem of win32 or win64 version of matlab.
try to change the VS build platform (x86 or x64)