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



Adam Chapman <adam.chapman@xxxxxxxxxxxxxxxxxxxxxxxx> wrote
in message
<6e59a26b-a9ba-4622-8398-c4a1098f3099@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
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"


I will try this next monday.

Thank you for your help
.



Relevant Pages

  • Re: newbie question: creating my first mex-file - compiling on windows xp
    ... > Which compiler should I download in order to get started? ... For mex, LCC that comes wirth matlab suffices for getting started. ... Install the MS Visual studio first, and see if there are more options ...
    (comp.soft-sys.matlab)
  • Re: newbie question: creating my first mex-file - compiling on windows xp
    ... There is a PDF file available at the Matworks site. ... > I found something with google called "Connecting C and matlab" 4 pages. ... >> IDE you will almost certainly find it easier to learn C there. ... I'd go with the compiler with the best IDE ...
    (comp.soft-sys.matlab)
  • Re: Status of Compiler w/ standalone: Dlls, JNI, & Java apps?
    ... Is that still the case with the latest and greatest compiler (or is there ... The JNI C DLL is responsible for initializing the ... and dispatching calls to the MATLAB generated DLL. ... standalone DLL returned before another of its functions was called. ...
    (comp.soft-sys.matlab)
  • Re: Difference between the Compiler and RT Worksho
    ... But the Compiler is restricted to Matlab only, ... create .exe programs based on Simulink Models with RTW. ... Real-Time Workshop, on the other hand, ...
    (comp.soft-sys.matlab)
  • Re: Matlab Compiler 4.0 Exception
    ... >> I just received this error message when using Matlab Compiler ... >> under Windows 2000 when trying to compile a standalone ... >> mcc -m RollerTestTool.m ...
    (comp.soft-sys.matlab)