Re: how to set up a C compiler in matlab under Vista 64 bits



On Feb 29, 7:47 pm, "Bousse " <ale...@xxxxxxxxxx> wrote:
Hello everyone

I am struggling to set up a C compiler in matlab. I am
working with Matlab 2007a, with Windows Vista 64 bits
(professional edition). I have installed Visual Studio Pro
2005 (V8.0), and this version of VS is supposed to be the
one that can work with matlab on a 64 bits Windows OS.

However, when I imput "mex -setup" in the command prompt,
matlab cannot detect the compiler. I can only choose [0] (none).

I am totally lost, I don't know what should I do. I have to
recompile 100% of my C code as soon as possible.

Thank you very much for you help

Regards,
Alexandre

I had a similar problem in vista 32 bit.

If your problem is the same as mine was, do this:

First you need Download Microsoft's SDK (search for it on microsoft's
website)

1.Create a directory "PlatformSDK" under "C:\%ProgramFiles%\Microsoft
Visual Studio 8\VC"
2. Copy the "bin", "include" and "lib" directory from the PSDK-
installation into this directory.

Go to control panel > system > advanced settings
Create a new environment variable called "MSSdk", with the address
"%ProgramFiles%\Microsoft Visual Studio 8\VC"
.



Relevant Pages

  • Re: Simulink accelerator not working!
    ... In order to compile programs in Matlab and to use Simulink accelerator, ... also installed a C compiler, in my case was Microsoft Visual C++ 2008 SP1 ... Please define one of the following environment variables: ... Microsoft Visual C installation and ensure the appropriate environemnt ...
    (comp.soft-sys.matlab)
  • Question about mex compilation on 64bit machine in Windoze
    ... I have recently installed Matlab R2008b. ... no default lcc compiler for 64 bit, and that a free compiler can be ... Matlab simply does not recognize the existence of this installation. ... What do I have to do to use the SDK platform to compile with mex? ...
    (comp.soft-sys.matlab)
  • Re: MatLab Compiler
    ... because I already have MatLab on my computer or is it because I ... part of your system admin's installation procedure might ... I've the compiler toolbox installed, but not on the 7.2.Anyway I've ... the mcc command, but I was told that mcc command doesn't suite .m ...
    (comp.soft-sys.matlab)
  • Re: Matlab for Mac OS X Tiger
    ... > be something "corrupt" with the resultant installation. ... > had this kind of problem with Matlab before. ... stale toolbox path cache by using "rehash toolboxcache" without the quotes ...
    (comp.soft-sys.matlab)
  • MATLAB in FreeBSD
    ... to install MATLAB i have followed striclty what FreeBSD doc suggests (even ... if this doc is not updateed and contains erros) @ ... to run succesfully the installation. ... I tried to run anyway the matlab script but an erro occurred for the sam ...
    (freebsd-questions)