Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!nx01.iad01.newshosting.com!newshosting.com!69.28.186.77.MISMATCH!hwmpeer03.lga!hwmnpeer01.lga!news.highwinds-media.com!cycny01.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny05.POSTED!702e7bde!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: MEX basics help ; URGENT !!
Message-ID: <4iihm3dqa0463ktha85c8dvd3ua6kvaff1@4ax.com>
References: <fk7l7d$fib$1@fred.mathworks.com> <b54fm3h8mq0a69lr2om8i7gk2d6rb46p65@4ax.com> <fk953i$6iu$1@fred.mathworks.com>
X-Newsreader: Forte Agent 3.3/32.846
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 54
Date: Wed, 19 Dec 2007 07:52:10 GMT
NNTP-Posting-Host: 71.102.101.126
X-Complaints-To: abuse@verizon.net
X-Trace: trndny05 1198050730 71.102.101.126 (Wed, 19 Dec 2007 02:52:10 EST)
NNTP-Posting-Date: Wed, 19 Dec 2007 02:52:10 EST
Xref: news.mathworks.com comp.soft-sys.matlab:442983



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