Path: news.mathworks.com!not-for-mail
From: "Charan " <boyacharan@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: MEX basics help ; URGENT !!
Date: Tue, 18 Dec 2007 18:55:46 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 44
Message-ID: <fk953i$6iu$1@fred.mathworks.com>
References: <fk7l7d$fib$1@fred.mathworks.com> <b54fm3h8mq0a69lr2om8i7gk2d6rb46p65@4ax.com>
Reply-To: "Charan " <boyacharan@gmail.com>
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 1198004146 6750 172.30.248.35 (18 Dec 2007 18:55:46 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 18 Dec 2007 18:55:46 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 618521
Xref: news.mathworks.com comp.soft-sys.matlab:442928



James Tursa <aclassyguywithaknotac@hotmail.com> wrote in
message <b54fm3h8mq0a69lr2om8i7gk2d6rb46p65@4ax.com>...
> >
> >//---------------------error output------------------------
> > 
> >>> mex timestwo.f
> >timestwo.f(15) : Error: Syntax error, found ',' when
> >expecting one of: <END-OF-STATEMENT> ; 
> >      integer nlhsx=2, nrhs 
> >---------------------^ 
> >timestwo.f(16) : Error: A specification statement cannot
> >appear in the executable section. 
> 
> It appears that somehow the statement x=2 got put in the
middle of the
> specification statement. The line should read:
> 
>       integer nlhs, nrhs
> 
> James Tursa


I am so sorry ...but that was an error in the code...

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