Path: news.mathworks.com!not-for-mail
From: "Charan " <boyacharan@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: MEX basics help ; URGENT !!
Date: Wed, 2 Jan 2008 05:23:19 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 87
Message-ID: <flf747$r88$1@fred.mathworks.com>
References: <fk7l7d$fib$1@fred.mathworks.com> <b54fm3h8mq0a69lr2om8i7gk2d6rb46p65@4ax.com> <fk953i$6iu$1@fred.mathworks.com> <4iihm3dqa0463ktha85c8dvd3ua6kvaff1@4ax.com> <ge8sm3hrssv9mch2gffgpq4cth3q8n5jio@4ax.com>
Reply-To: "Charan " <boyacharan@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1199251399 27912 172.30.248.38 (2 Jan 2008 05:23:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 2 Jan 2008 05:23:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 618521
Xref: news.mathworks.com comp.soft-sys.matlab:443983



Hi James,

So what is the alternative?

Try another version of Compiler? I will try your steps anyways.

Thanks,
Charan

James Tursa <aclassyguywithaknotac@hotmail.com> wrote in
message <ge8sm3hrssv9mch2gffgpq4cth3q8n5jio@4ax.com>...
> On Wed, 19 Dec 2007 07:52:10 GMT, James Tursa
> <aclassyguywithaknotac@hotmail.com> wrote:
> 
> >On Tue, 18 Dec 2007 18:55:46 +0000 (UTC), "Charan "
> ><boyacharan@gmail.com> wrote:
> >>
> >>but the error which shows up now is 
> >>
> >>//------------error-----------------------------------
> >>>> mex timestwo.f
> >>'link' is not recognized as an internal or external
command, 
> >>operable program or batch file. 
> >> 
> >>  C:\PROGRA~1\MATLAB\R2007B\BIN\MEX.PL: Error: Link of
> >>'timestwo.mexw32' failed. 
> >> 
> >>??? Error using ==> mex at 208
> >>Unable to complete successfully.
> >>
> >>------------------------------------------------
> >>
> >>We think this could be due to the compiler linker...
> >>We are using Intel Visual Fortran 10.1.011
> >>
> >>Thanks,
> >>Charan
> >
> >So it appears that you are fooling MATLAB into thinking
it is using
> >the Intel 9.0 compiler but really pointing it to the 10.1
directory.
> >That means it is still using the intelf90msvs2003opts.bat
file that is
> >specific to the 9.0 compiler, and probably other 9.0
specific files as
> >well. I can only wish you luck. I tried something like
this in the
> >past and never was successful. You could try copying the
following
> >files:
> >
> >    intelf90msvs2003opts.bat
> >    intelf90engmatopts.bat
> >    intelf90opts.bat
> >    intelf90opts.stp
> >
> >    (or whatever specific 9.0 files that came with your
version)
> >
> >into new files:
> >
> >    intelf101msvs2003opts.bat
> >    intelf101engmatopts.bat
> >    intelf101opts.bat
> >    intelf101opts.stp
> >
> >and then hand editing them for the 10.1 specific
infomation that you
> >need. At least MATLAB will find your compiler with the
"mex -setup"
> >command.  But like I said, I never got this approach to
work so I
> >can't really give you specifics as to how to modify the
files.
> >Particularly for the linker and linker options. Good luck ...
> >
> >James Tursa
> 
> 
> P.S. If you ever do get this to work I would be interested
in knowing
> how you did it.
> 
> James Tursa