I am using 64-bit MATLAB on 64-bit Windows. I have installed Visual Studio 2008 as well. However when I try to load a library with the LOADLIBRARY command this way:
addpath([matlabroot '\extern\examples\shrlib'])loadlibrary shrlibsample shrlibsample.h
I get the error:
??? Error using ==> loadlibrary at 368 Failed to preprocess the input file. Output from preprocessor is:'cl' is not recognized as an internal or external command, operable program or batch file.
I would like to know why I get this error even though I have the supported MSVC 2008 professional edition installed on my machine.
Best Answer