MATLAB: Steps to compile files.cpp (c++) and programs needed

cfiles.cppMATLABMATLAB Compiler

Hello all,
I am trying to compile some files.cpp as below but without success. I read that it would be useful so I installed Microsoft visual c++ 2010 express but then what are the steps. I'm using windows 7 and matlab r2012b. Any help welcome. Thanks. Mim
mex jl_clust.cpp jl_clust_orient.cpp jl_mnew.cpp
C:\PROGRA~1\MATLAB\R2012B\BIN\MEX.PL: Error: 'jl_clust.cpp' not found.
Error using mex (line 206) Unable to complete successfully.
>> mex -setup
Welcome to mex -setup. This utility will help you set up a default compiler. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2012b/win32.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n?
Select a compiler: [1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2012b\sys\lcc
[0] None

Best Answer

Did you install the SDK7.1 already? It is enough to compile MEX files, such that the MSVC package is not required.
Then mex -setup should find the compiler.
Afterwards the message "Error: 'jl_clust.cpp' not found" means, that this file is not found in the current directory. Us cd to shange into the folder these source files are found in.
[EDITED] Have you checked this already: http://www.mathworks.com/support/solutions/en/data/1-FPLDGV/?
Related Question