Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: MEX EXAMPLE not working .. URGENT please
Date: Wed, 20 Feb 2008 00:49:08 +0000 (UTC)
Organization: Boeing
Lines: 20
Message-ID: <fpfte4$a1j$1@fred.mathworks.com>
References: <fpflmf$6nl$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1203468548 10291 172.30.248.35 (20 Feb 2008 00:49:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 20 Feb 2008 00:49:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 756104
Xref: news.mathworks.com comp.soft-sys.matlab:452541




timestwo.F works fine for my R2007a and Intel 9.1. It may 
be that you are using an older version of MATLAB where the 
header file fintrf.h does not define mwpointer or mwsize 
(they used to be just integer*4). So after the 
#include "fintrf.h" line, add these lines:

#ifndef mwpointer
#define mwpointer integer*4
#endif

#ifndef mwsize
#define mwsize integer*4
#endif

That way, if they are not defined then your code will 
define them before using them.

James Tursa