I'm using MATLAB 2010b with Microsoft Visual Studio 2010 Express on a 64-bit Windows 7 computer, trying to compile old c code into a mex file:
-------------------------------------
Error: Could not find the compiler "cl" on the DOS path.
Use mex -setup to configure your environment properly.
C:\PROGRA~1\MATLAB\R2010B\BIN\MEX.PL: Error: Unable to locate compiler.
??? Error using ==> mex at 208
Unable to complete successfully.
---------------------------------------
So I googled around, found a few threads here, tried some stuff (used "mex -setup" and had it find the compiler, messed around with environmental variables, etc). Nothing seems to be working.
I'm going to try Run as Administrator right now and see if I can get at/check out the preference file that claims to be updated when I run "mex -setup" (invisible on my main account for some reason), but if anyone has any ideas I would love to hear them!
|
|
0
|
|
|
|
Reply
|
Peter
|
12/9/2010 5:14:06 PM |
|
Hi list,
I have the same problem here. Any progress on this?
Cheers,
Markus
"Peter " <squarefocus@hotmail.com> wrote in message <idr2ou$6ho$1@fred.mathworks.com>...
> I'm using MATLAB 2010b with Microsoft Visual Studio 2010 Express on a 64-bit Windows 7 computer, trying to compile old c code into a mex file:
> -------------------------------------
> Error: Could not find the compiler "cl" on the DOS path.
> Use mex -setup to configure your environment properly.
>
>
> C:\PROGRA~1\MATLAB\R2010B\BIN\MEX.PL: Error: Unable to locate compiler.
>
> ??? Error using ==> mex at 208
> Unable to complete successfully.
> ---------------------------------------
>
> So I googled around, found a few threads here, tried some stuff (used "mex -setup" and had it find the compiler, messed around with environmental variables, etc). Nothing seems to be working.
>
> I'm going to try Run as Administrator right now and see if I can get at/check out the preference file that claims to be updated when I run "mex -setup" (invisible on my main account for some reason), but if anyone has any ideas I would love to hear them!
|
|
0
|
|
|
|
Reply
|
Markus
|
12/17/2010 4:27:04 AM
|
|