<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161041</link>
    <title>MATLAB Central Newsreader - MEX basics help ; URGENT !!</title>
    <description>Feed for thread: MEX basics help ; URGENT !!</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 18 Dec 2007 05:18:37 -0500</pubDate>
      <title>MEX basics help ; URGENT !!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161041#406569</link>
      <author>Charan </author>
      <description>I am a newbie to MEX functions. &lt;br&gt;
&lt;br&gt;
I took the timestwo.f in the help in Matlab and tried to run&lt;br&gt;
the function but i got the following error.&lt;br&gt;
&lt;br&gt;
I also bought a Intel Fortran Compiler 10.1(academic&lt;br&gt;
version). The steps I followed are as follows:&lt;br&gt;
&lt;br&gt;
1) Mex- setup&lt;br&gt;
&lt;br&gt;
2) the compiler was not in the list (Intel fortran 9.0 was&lt;br&gt;
only there)&lt;br&gt;
&lt;br&gt;
3) so I changed the directory when it asked me to verify the&lt;br&gt;
location of the compiler to THE DIRECTORY of FORTRAN 10.1&lt;br&gt;
&lt;br&gt;
then  after loading the complier (screen output for these&lt;br&gt;
steps are shown below the error portion)&lt;br&gt;
&lt;br&gt;
4) when I typed &quot;mex timestwo.f&quot; we got the following error&lt;br&gt;
&lt;br&gt;
I really appreciate your help &lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Charan&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
//---------------------error output------------------------&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&amp;gt;&amp;gt; mex timestwo.f&lt;br&gt;
timestwo.f(15) : Error: Syntax error, found ',' when&lt;br&gt;
expecting one of: &amp;lt;END-OF-STATEMENT&amp;gt; ; &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;integer nlhsx=2, nrhs &lt;br&gt;
---------------------^ &lt;br&gt;
timestwo.f(16) : Error: A specification statement cannot&lt;br&gt;
appear in the executable section. &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;integer m, n, size &lt;br&gt;
------^ &lt;br&gt;
timestwo.f(17) : Error: A specification statement cannot&lt;br&gt;
appear in the executable section. &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;real*8 x, y &lt;br&gt;
------^ &lt;br&gt;
compilation aborted for timestwo.f (code 1) &lt;br&gt;
&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;C:\PROGRA~1\MATLAB\R2007B\BIN\MEX.PL: Error: Compile of&lt;br&gt;
'timestwo.f' failed. &lt;br&gt;
&amp;nbsp;&lt;br&gt;
??? Error using ==&amp;gt; mex at 208&lt;br&gt;
Unable to complete successfully.&lt;br&gt;
------------------------------------------------------------&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; mex -setup&lt;br&gt;
Please choose your compiler for building external interface&lt;br&gt;
(MEX) files: &lt;br&gt;
&amp;nbsp;&lt;br&gt;
Would you like mex to locate installed compilers [y]/n? n&lt;br&gt;
&amp;nbsp;&lt;br&gt;
Select a compiler: &lt;br&gt;
[1] Borland C++ Compiler (free command line tools) 5.5 &lt;br&gt;
[2] Borland C++Builder 6.0 &lt;br&gt;
[3] Borland C++Builder 5.0 &lt;br&gt;
[4] Compaq Visual Fortran 6.1 &lt;br&gt;
[5] Compaq Visual Fortran 6.6 &lt;br&gt;
[6] Intel C++ 9.1 (with Microsoft Visual C++ 2005 linker) &lt;br&gt;
[7] Intel Visual Fortran 9.1 (with Microsoft Visual C++ 2005&lt;br&gt;
linker) &lt;br&gt;
[8] Intel Visual Fortran 9.0 (with Microsoft Visual C++ 2005&lt;br&gt;
linker) &lt;br&gt;
[9] Intel Visual Fortran 9.0 (with Microsoft Visual C++ .NET&lt;br&gt;
2003 linker) &lt;br&gt;
[10] Lcc-win32 C 2.4.1 &lt;br&gt;
[11] Microsoft Visual C++ 6.0 &lt;br&gt;
[12] Microsoft Visual C++ .NET 2003 &lt;br&gt;
[13] Microsoft Visual C++ 2005 &lt;br&gt;
[14] Microsoft Visual C++ 2005 Express Edition &lt;br&gt;
[15] Open WATCOM C++ 1.3 &lt;br&gt;
&amp;nbsp;&lt;br&gt;
[0] None &lt;br&gt;
&amp;nbsp;&lt;br&gt;
Compiler: 9&lt;br&gt;
&amp;nbsp;&lt;br&gt;
The default location for Intel Visual Fortran compilers is&lt;br&gt;
C:\Program Files (x86)\Intel\Compiler\Fortran\9.0, &lt;br&gt;
but that directory does not exist on this machine.  &lt;br&gt;
&amp;nbsp;&lt;br&gt;
Use C:\Program Files (x86)\Intel\Compiler\Fortran\9.0 anyway&lt;br&gt;
[y]/n? n&lt;br&gt;
Please enter the location of your compiler: [C:\Program&lt;br&gt;
Files (x86)\Intel\Compiler\Fortran\9.0] C:\Program&lt;br&gt;
Files\Intel\Compiler\Fortran\10.1.011&lt;br&gt;
&amp;nbsp;&lt;br&gt;
Please verify your choices: &lt;br&gt;
&amp;nbsp;&lt;br&gt;
Compiler: Intel Visual Fortran 9.0 &lt;br&gt;
Location: C:\Program Files\Intel\Compiler\Fortran\10.1.011 &lt;br&gt;
&amp;nbsp;&lt;br&gt;
Are these correct?([y]/n): y&lt;br&gt;
&amp;nbsp;&lt;br&gt;
***************************************************************************&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;Warning: The Intel Visual Fortran 9.0 compiler is being&lt;br&gt;
phased out &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;and will not be supported in a future release.  &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;For a list of currently supported compilers see:  &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/support/tech-notes/1600/1601.html&quot;&gt;http://www.mathworks.com/support/tech-notes/1600/1601.html&lt;/a&gt; &lt;br&gt;
***************************************************************************&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&lt;br&gt;
Trying to update options file: C:\Documents and&lt;br&gt;
Settings\Akhil\Application&lt;br&gt;
Data\MathWorks\MATLAB\R2007b\mexopts.bat &lt;br&gt;
From template:             &lt;br&gt;
C:\PROGRA~1\MATLAB\R2007b\bin\win32\mexopts\intelf90msvs2003opts.bat&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&lt;br&gt;
Done . . . &lt;br&gt;
&lt;br&gt;
-----------------------------------------------------------</description>
    </item>
    <item>
      <pubDate>Tue, 18 Dec 2007 09:23:54 -0500</pubDate>
      <title>Re: MEX basics help ; URGENT !!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161041#406589</link>
      <author>James Tursa</author>
      <description>&amp;gt;&lt;br&gt;
&amp;gt;//---------------------error output------------------------&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; mex timestwo.f&lt;br&gt;
&amp;gt;timestwo.f(15) : Error: Syntax error, found ',' when&lt;br&gt;
&amp;gt;expecting one of: &amp;lt;END-OF-STATEMENT&amp;gt; ; &lt;br&gt;
&amp;gt;      integer nlhsx=2, nrhs &lt;br&gt;
&amp;gt;---------------------^ &lt;br&gt;
&amp;gt;timestwo.f(16) : Error: A specification statement cannot&lt;br&gt;
&amp;gt;appear in the executable section. &lt;br&gt;
&lt;br&gt;
It appears that somehow the statement x=2 got put in the middle of the&lt;br&gt;
specification statement. The line should read:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;integer nlhs, nrhs&lt;br&gt;
&lt;br&gt;
James Tursa</description>
    </item>
    <item>
      <pubDate>Tue, 18 Dec 2007 18:55:46 -0500</pubDate>
      <title>Re: MEX basics help ; URGENT !!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161041#406634</link>
      <author>Charan </author>
      <description>James Tursa &amp;lt;aclassyguywithaknotac@hotmail.com&amp;gt; wrote in&lt;br&gt;
message &amp;lt;b54fm3h8mq0a69lr2om8i7gk2d6rb46p65@4ax.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;//---------------------error output------------------------&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; mex timestwo.f&lt;br&gt;
&amp;gt; &amp;gt;timestwo.f(15) : Error: Syntax error, found ',' when&lt;br&gt;
&amp;gt; &amp;gt;expecting one of: &amp;lt;END-OF-STATEMENT&amp;gt; ; &lt;br&gt;
&amp;gt; &amp;gt;      integer nlhsx=2, nrhs &lt;br&gt;
&amp;gt; &amp;gt;---------------------^ &lt;br&gt;
&amp;gt; &amp;gt;timestwo.f(16) : Error: A specification statement cannot&lt;br&gt;
&amp;gt; &amp;gt;appear in the executable section. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; It appears that somehow the statement x=2 got put in the&lt;br&gt;
middle of the&lt;br&gt;
&amp;gt; specification statement. The line should read:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;       integer nlhs, nrhs&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; James Tursa&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I am so sorry ...but that was an error in the code...&lt;br&gt;
&lt;br&gt;
but the error which shows up now is &lt;br&gt;
&lt;br&gt;
//------------error-----------------------------------&lt;br&gt;
&amp;gt;&amp;gt; mex timestwo.f&lt;br&gt;
'link' is not recognized as an internal or external command, &lt;br&gt;
operable program or batch file. &lt;br&gt;
&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;C:\PROGRA~1\MATLAB\R2007B\BIN\MEX.PL: Error: Link of&lt;br&gt;
'timestwo.mexw32' failed. &lt;br&gt;
&amp;nbsp;&lt;br&gt;
??? Error using ==&amp;gt; mex at 208&lt;br&gt;
Unable to complete successfully.&lt;br&gt;
&lt;br&gt;
------------------------------------------------&lt;br&gt;
&lt;br&gt;
We think this could be due to the compiler linker...&lt;br&gt;
We are using Intel Visual Fortran 10.1.011&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Charan</description>
    </item>
    <item>
      <pubDate>Wed, 19 Dec 2007 07:52:10 -0500</pubDate>
      <title>Re: MEX basics help ; URGENT !!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161041#406689</link>
      <author>James Tursa</author>
      <description>On Tue, 18 Dec 2007 18:55:46 +0000 (UTC), &quot;Charan &quot;&lt;br&gt;
&amp;lt;boyacharan@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;but the error which shows up now is &lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;//------------error-----------------------------------&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; mex timestwo.f&lt;br&gt;
&amp;gt;'link' is not recognized as an internal or external command, &lt;br&gt;
&amp;gt;operable program or batch file. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;  C:\PROGRA~1\MATLAB\R2007B\BIN\MEX.PL: Error: Link of&lt;br&gt;
&amp;gt;'timestwo.mexw32' failed. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;??? Error using ==&amp;gt; mex at 208&lt;br&gt;
&amp;gt;Unable to complete successfully.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;------------------------------------------------&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;We think this could be due to the compiler linker...&lt;br&gt;
&amp;gt;We are using Intel Visual Fortran 10.1.011&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;Thanks,&lt;br&gt;
&amp;gt;Charan&lt;br&gt;
&lt;br&gt;
So it appears that you are fooling MATLAB into thinking it is using&lt;br&gt;
the Intel 9.0 compiler but really pointing it to the 10.1 directory.&lt;br&gt;
That means it is still using the intelf90msvs2003opts.bat file that is&lt;br&gt;
specific to the 9.0 compiler, and probably other 9.0 specific files as&lt;br&gt;
well. I can only wish you luck. I tried something like this in the&lt;br&gt;
past and never was successful. You could try copying the following&lt;br&gt;
files:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;intelf90msvs2003opts.bat&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;intelf90engmatopts.bat&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;intelf90opts.bat&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;intelf90opts.stp&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(or whatever specific 9.0 files that came with your version)&lt;br&gt;
&lt;br&gt;
into new files:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;intelf101msvs2003opts.bat&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;intelf101engmatopts.bat&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;intelf101opts.bat&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;intelf101opts.stp&lt;br&gt;
&lt;br&gt;
and then hand editing them for the 10.1 specific infomation that you&lt;br&gt;
need. At least MATLAB will find your compiler with the &quot;mex -setup&quot;&lt;br&gt;
command.  But like I said, I never got this approach to work so I&lt;br&gt;
can't really give you specifics as to how to modify the files.&lt;br&gt;
Particularly for the linker and linker options. Good luck ...&lt;br&gt;
&lt;br&gt;
James Tursa</description>
    </item>
    <item>
      <pubDate>Sun, 23 Dec 2007 08:55:49 -0500</pubDate>
      <title>Re: MEX basics help ; URGENT !!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161041#407104</link>
      <author>James Tursa</author>
      <description>On Wed, 19 Dec 2007 07:52:10 GMT, James Tursa&lt;br&gt;
&amp;lt;aclassyguywithaknotac@hotmail.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt;On Tue, 18 Dec 2007 18:55:46 +0000 (UTC), &quot;Charan &quot;&lt;br&gt;
&amp;gt;&amp;lt;boyacharan@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;but the error which shows up now is &lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;//------------error-----------------------------------&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; mex timestwo.f&lt;br&gt;
&amp;gt;&amp;gt;'link' is not recognized as an internal or external command, &lt;br&gt;
&amp;gt;&amp;gt;operable program or batch file. &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt;  C:\PROGRA~1\MATLAB\R2007B\BIN\MEX.PL: Error: Link of&lt;br&gt;
&amp;gt;&amp;gt;'timestwo.mexw32' failed. &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt;??? Error using ==&amp;gt; mex at 208&lt;br&gt;
&amp;gt;&amp;gt;Unable to complete successfully.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;------------------------------------------------&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;We think this could be due to the compiler linker...&lt;br&gt;
&amp;gt;&amp;gt;We are using Intel Visual Fortran 10.1.011&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;Thanks,&lt;br&gt;
&amp;gt;&amp;gt;Charan&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;So it appears that you are fooling MATLAB into thinking it is using&lt;br&gt;
&amp;gt;the Intel 9.0 compiler but really pointing it to the 10.1 directory.&lt;br&gt;
&amp;gt;That means it is still using the intelf90msvs2003opts.bat file that is&lt;br&gt;
&amp;gt;specific to the 9.0 compiler, and probably other 9.0 specific files as&lt;br&gt;
&amp;gt;well. I can only wish you luck. I tried something like this in the&lt;br&gt;
&amp;gt;past and never was successful. You could try copying the following&lt;br&gt;
&amp;gt;files:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;    intelf90msvs2003opts.bat&lt;br&gt;
&amp;gt;    intelf90engmatopts.bat&lt;br&gt;
&amp;gt;    intelf90opts.bat&lt;br&gt;
&amp;gt;    intelf90opts.stp&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;    (or whatever specific 9.0 files that came with your version)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;into new files:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;    intelf101msvs2003opts.bat&lt;br&gt;
&amp;gt;    intelf101engmatopts.bat&lt;br&gt;
&amp;gt;    intelf101opts.bat&lt;br&gt;
&amp;gt;    intelf101opts.stp&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;and then hand editing them for the 10.1 specific infomation that you&lt;br&gt;
&amp;gt;need. At least MATLAB will find your compiler with the &quot;mex -setup&quot;&lt;br&gt;
&amp;gt;command.  But like I said, I never got this approach to work so I&lt;br&gt;
&amp;gt;can't really give you specifics as to how to modify the files.&lt;br&gt;
&amp;gt;Particularly for the linker and linker options. Good luck ...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;James Tursa&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
P.S. If you ever do get this to work I would be interested in knowing&lt;br&gt;
how you did it.&lt;br&gt;
&lt;br&gt;
James Tursa</description>
    </item>
    <item>
      <pubDate>Wed, 02 Jan 2008 05:23:19 -0500</pubDate>
      <title>Re: MEX basics help ; URGENT !!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161041#407663</link>
      <author>Charan </author>
      <description>Hi James,&lt;br&gt;
&lt;br&gt;
So what is the alternative?&lt;br&gt;
&lt;br&gt;
Try another version of Compiler? I will try your steps anyways.&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Charan&lt;br&gt;
&lt;br&gt;
James Tursa &amp;lt;aclassyguywithaknotac@hotmail.com&amp;gt; wrote in&lt;br&gt;
message &amp;lt;ge8sm3hrssv9mch2gffgpq4cth3q8n5jio@4ax.com&amp;gt;...&lt;br&gt;
&amp;gt; On Wed, 19 Dec 2007 07:52:10 GMT, James Tursa&lt;br&gt;
&amp;gt; &amp;lt;aclassyguywithaknotac@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;On Tue, 18 Dec 2007 18:55:46 +0000 (UTC), &quot;Charan &quot;&lt;br&gt;
&amp;gt; &amp;gt;&amp;lt;boyacharan@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;but the error which shows up now is &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;//------------error-----------------------------------&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; mex timestwo.f&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;'link' is not recognized as an internal or external&lt;br&gt;
command, &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;operable program or batch file. &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;  C:\PROGRA~1\MATLAB\R2007B\BIN\MEX.PL: Error: Link of&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;'timestwo.mexw32' failed. &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;??? Error using ==&amp;gt; mex at 208&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;Unable to complete successfully.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;------------------------------------------------&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;We think this could be due to the compiler linker...&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;We are using Intel Visual Fortran 10.1.011&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;Thanks,&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;Charan&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;So it appears that you are fooling MATLAB into thinking&lt;br&gt;
it is using&lt;br&gt;
&amp;gt; &amp;gt;the Intel 9.0 compiler but really pointing it to the 10.1&lt;br&gt;
directory.&lt;br&gt;
&amp;gt; &amp;gt;That means it is still using the intelf90msvs2003opts.bat&lt;br&gt;
file that is&lt;br&gt;
&amp;gt; &amp;gt;specific to the 9.0 compiler, and probably other 9.0&lt;br&gt;
specific files as&lt;br&gt;
&amp;gt; &amp;gt;well. I can only wish you luck. I tried something like&lt;br&gt;
this in the&lt;br&gt;
&amp;gt; &amp;gt;past and never was successful. You could try copying the&lt;br&gt;
following&lt;br&gt;
&amp;gt; &amp;gt;files:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;    intelf90msvs2003opts.bat&lt;br&gt;
&amp;gt; &amp;gt;    intelf90engmatopts.bat&lt;br&gt;
&amp;gt; &amp;gt;    intelf90opts.bat&lt;br&gt;
&amp;gt; &amp;gt;    intelf90opts.stp&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;    (or whatever specific 9.0 files that came with your&lt;br&gt;
version)&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;into new files:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;    intelf101msvs2003opts.bat&lt;br&gt;
&amp;gt; &amp;gt;    intelf101engmatopts.bat&lt;br&gt;
&amp;gt; &amp;gt;    intelf101opts.bat&lt;br&gt;
&amp;gt; &amp;gt;    intelf101opts.stp&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;and then hand editing them for the 10.1 specific&lt;br&gt;
infomation that you&lt;br&gt;
&amp;gt; &amp;gt;need. At least MATLAB will find your compiler with the&lt;br&gt;
&quot;mex -setup&quot;&lt;br&gt;
&amp;gt; &amp;gt;command.  But like I said, I never got this approach to&lt;br&gt;
work so I&lt;br&gt;
&amp;gt; &amp;gt;can't really give you specifics as to how to modify the&lt;br&gt;
files.&lt;br&gt;
&amp;gt; &amp;gt;Particularly for the linker and linker options. Good luck ...&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;James Tursa&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; P.S. If you ever do get this to work I would be interested&lt;br&gt;
in knowing&lt;br&gt;
&amp;gt; how you did it.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; James Tursa</description>
    </item>
  </channel>
</rss>

