Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!nx01.iad01.newshosting.com!newshosting.com!130.81.64.211.MISMATCH!cycny01.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny09.POSTED!702e7bde!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: MEX basics help ; URGENT !!
Message-ID: <ge8sm3hrssv9mch2gffgpq4cth3q8n5jio@4ax.com>
References: <fk7l7d$fib$1@fred.mathworks.com> <b54fm3h8mq0a69lr2om8i7gk2d6rb46p65@4ax.com> <fk953i$6iu$1@fred.mathworks.com> <4iihm3dqa0463ktha85c8dvd3ua6kvaff1@4ax.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: 62
Date: Sun, 23 Dec 2007 08:55:49 GMT
NNTP-Posting-Host: 71.112.16.51
X-Complaints-To: abuse@verizon.net
X-Trace: trndny09 1198400149 71.112.16.51 (Sun, 23 Dec 2007 03:55:49 EST)
NNTP-Posting-Date: Sun, 23 Dec 2007 03:55:49 EST
Xref: news.mathworks.com comp.soft-sys.matlab:443400



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