No C++ compiler found in MATLAB using mex

user1019083 picture user1019083 · Feb 14, 2012 · Viewed 7.9k times · Source

I am trying to write C++ programs and integrate it with MATLAB using mex interface. I wrote mex -setup command on MATLAB and this was the result Select a compiler:

[0] None

I have Visual Studio 2010 installed on a Windows 7 64 bit PC with MATLAB R2009b installed (64bit). I read somewhere visual studio 2010 should have 64 bit compiler installed which is done. Can some one help me out please

Answer

Joel Falcou picture Joel Falcou · Feb 14, 2012

Could it be related to the fact that cl.exe is not in your %PATH ? Try fixing your PATH using the Options Panel on "My Computer" and try again