Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.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: <b54fm3h8mq0a69lr2om8i7gk2d6rb46p65@4ax.com>
References: <fk7l7d$fib$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: 17
Date: Tue, 18 Dec 2007 09:23:54 GMT
NNTP-Posting-Host: 71.112.92.70
X-Complaints-To: abuse@verizon.net
X-Trace: trndny05 1197969834 71.112.92.70 (Tue, 18 Dec 2007 04:23:54 EST)
NNTP-Posting-Date: Tue, 18 Dec 2007 04:23:54 EST
Bytes: 1361
X-Original-Bytes: 1318
Xref: news.mathworks.com comp.soft-sys.matlab:442882



>
>//---------------------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