I am trying to compile some c++ code into a MEX in MATLAB 2010a under Windows 7 64 bit. I get the following error:
---
Error: Could not find the compiler "cl" on the DOS path.
Use mex -setup to configure your environment properly.
C:\PROGRA~1\MATLAB\R2010A\BIN\MEX.PL: Error: Unable to locate compiler.
---
When use mex -setup the only compiler listed is "Microsoft Visual C++ 2008 Express in C:\Program Files (x86)\Microsoft Visual Studio 9.0".
I have done some searching and found suggestions this might be due to the path of the VCINSTALLDIR not being specified properly in the mexopts .bat files. I set the environment variable VCINSTALLDIR to "C:\Program Files (x86)\Microsoft Visual Studio 9.0".
I still get the same error. Can any one help me?
Many thanks
Mark
"Mark Drakesmith" <mark.dr...@postgrad.manchester.ac.uk> wrote in
message news:i8v0jo$8ol$1...@fred.mathworks.com...
Follow the instructions in footnote 3 on this page:
http://www.mathworks.com/support/compilers/R2010a/win64.html
--
Steve Lord
sl...@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com
Thanks again
Mark
> Follow the instructions in footnote 3 on this page:
>
> http://www.mathworks.com/support/compilers/R2010a/win64.html
Steve--as you're aware I'm stuck in R12 since retired and have never
been able to get mex -setup to recognize the CVF 6.6 (Update C) compiler.
I followed from the link above to the previous versions and found that
indeed, that is supposed to have been a supported compiler.
What I see in the list if ask for Matlab to find installed compilers--
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Digital Visual Fortran version 6.0 in C:\MSVisualStudio
[2] Lcc C version 2.4 in C:\MATLABR12\sys\lcc
[3] Microsoft Visual C/C++ version 5.0 in C:\Program Files\DevStudio
[4] WATCOM C/C++ version 10.6 in C:\WATCOM
Those are sorta' right, sorta' wrong...
The directory for CVF is correct; the version isn't. It is
C:\> df /logo =?
Compaq Visual Fortran Optimizing Compiler Version 6.6 (Update C)
I can't figure out if it's trying to parse the output of the fl32.exe to
determine that or trying to match it to some hardcoded string from
somewhere else.
I've created a CF66OPTS.* file; I've tried DF66* as well; nothing seems
to get past whatever sentinel is at the door.... :(
I've fiddled with this off and on ever since I got the update installed
and never have had any joy...
Can you or someone point to the detail that is missing in how this
supposedly works? Is the problem perhaps somehow related to the fact
the version of CVF is upgrade from DVF 5 rather than a virgin CVF
install and there's a remnant of the DVF in the registry or somesuch
causing a comparison failure?
--
"dpb" <no...@non.net> wrote in message
news:i8vbmm$klq$1...@news.eternal-september.org...
> Steven_Lord wrote:
> ...
>
>> Follow the instructions in footnote 3 on this page:
>>
>> http://www.mathworks.com/support/compilers/R2010a/win64.html
>
> Steve--as you're aware I'm stuck in R12 since retired and have never been
> able to get mex -setup to recognize the CVF 6.6 (Update C) compiler.
*snip*
For future reference, it appears dpb was able to get this working (at least
to the point of getting "mex -setup" to recognize the compiler.)
http://www.mathworks.com/matlabcentral/newsreader/view_thread/293630