Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Fortran MEX - Visul Studio Linker
Date: Wed, 13 Feb 2008 16:31:02 +0000 (UTC)
Organization: Oak Ridge National Laboratory
Lines: 60
Message-ID: <fov606$mip$1@fred.mathworks.com>
References: <fonh1o$lqu$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1202920262 23129 172.30.248.35 (13 Feb 2008 16:31:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 13 Feb 2008 16:31:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 409272
Xref: news.mathworks.com comp.soft-sys.matlab:451160



"Charan " <boyacharan@gmail.com> wrote in message
<fonh1o$lqu$1@fred.mathworks.com>...
> Hi
> 
> I  wanted to MEX function to compile a fortran code. I
> bought Intel Fortran 9.1 (since the matlab site say that is
> compatible to Matlab2007b).
> 
> When I load the compiler, I am getting this error. Please
> help. It is very urgent.
> 
> Thanks,
> Charan
> 
> ----error-----------
> Your machine has a Intel Visual Fortran compiler located at 
> C:\Program Files\Intel\Compiler\Fortran\9.1. Do you want to
> use this compiler [y]/n? y
>  
> Please verify your choices: 
>  
> Compiler: Intel Visual Fortran 9.1 
> Location: C:\Program Files\Intel\Compiler\Fortran\9.1 
>  
> Are these correct?([y]/n): y
>  
> Error: Microsoft Visual Studio 2005 was not found by mex
> -setup. 
>        The Microsoft Visual Studio 2005 linker is required 
>        to build Intel Fortran MEX-files.  Please make sure
that 
>        Microsoft Visual Studio 2005 is installed properly. 
>  
> ??? Error using ==> mex at 208
> Unable to complete successfully.
> -------------------------------------------


I would highly recommend taking a look at "howto: mex + MS
Visual C/C++ Express Edition 2005" by William Fox at
 http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=13321

It is extremely detailed on what things you need in order to
build MEX functions using the free Visual Studio C/C++
Express software.  More specifically, I suspect that the
information Mr. Fox provides in regards to obtaining
"missing components" from the Windows Platform SDK needed by
Matlab to work with the VS Express compiler(s) is directly
applicable(related) to the problem you are experiencing.

Be sure and leave a final post to let everyone know what/how
you end up fixing your problem.


NOTE: I found the information on which Windows Platform SDK
to use a little confusing because the official Microsoft
name for the "Windows Platform SDK" is "Windows Server 2003
R2 Platform SDK."  You do NOT want "Windows Server 2003 SP1
Platform SDK."   R2 good; SP1 bad(still works just minus a
few bug fixes).