Thread Subject: mwpointer

Subject: mwpointer

From: Ailsa Zhan

Date: 26 Oct, 2009 07:06:02

Message: 1 of 3

Hi,
 
I run the example fengdemo.f from matlab in CVF Version 6.6.
 
and I use FPP also.
 
Here is the error:
 
--------------------Configuration: fengdemo - Win32 Debug--------------------
Compiling Fortran...
fengdemo.i
D:\Fortran Project\test pulseforce\test engcall\fengdemo.for(23) : Error: Syntax error, found ',' when expecting one of: ( : % . = =>
      mwPointer engOpen, engGetVariable, mxCreateDoubleMatrix
-----------------------^
D:\Fortran Project\test pulseforce\test engcall\fengdemo.for(24) : Error: Syntax error, found END-OF-STATEMENT when expecting one of: ( : % . = =>
      mwPointer mxGetPr
-----------------------^
D:\Fortran Project\test pulseforce\test engcall\fengdemo.for(25) : Error: Syntax error, found ',' when expecting one of: ( : % . = =>
      mwpointer ep, T, D
------------------^
 
 
Thank you for your help!
 
Best Wishes,
 
Ailsa

Subject: mwpointer

From: James Tursa

Date: 26 Oct, 2009 21:20:20

Message: 2 of 3

"Ailsa Zhan" <zhanzhihuan@gmail.com> wrote in message <hc3hoq$88a$1@fred.mathworks.com>...
> Hi,
>
> I run the example fengdemo.f from matlab in CVF Version 6.6.
>
> and I use FPP also.
>
> Here is the error:
>
> --------------------Configuration: fengdemo - Win32 Debug--------------------
> Compiling Fortran...
> fengdemo.i
> D:\Fortran Project\test pulseforce\test engcall\fengdemo.for(23) : Error: Syntax error, found ',' when expecting one of: ( : % . = =>
> mwPointer engOpen, engGetVariable, mxCreateDoubleMatrix
> -----------------------^
> D:\Fortran Project\test pulseforce\test engcall\fengdemo.for(24) : Error: Syntax error, found END-OF-STATEMENT when expecting one of: ( : % . = =>
> mwPointer mxGetPr
> -----------------------^
> D:\Fortran Project\test pulseforce\test engcall\fengdemo.for(25) : Error: Syntax error, found ',' when expecting one of: ( : % . = =>
> mwpointer ep, T, D
> ------------------^
>
>
> Thank you for your help!
>
> Best Wishes,
>
> Ailsa

What version of MATLAB are you running? Older versions of the MATLAB API did not have definitions for mwpointer etc. Try inserting these lines after the #include "fintrf.h":

#include "fintrf.h"
#ifndef mwpointer
#define mwpointer integer
#endif
#ifndef mwPointer
#define mwPointer integer
#endif
#ifndef mwsize
#define mwsize integer
#endif
#ifndef mwSize
#define mwSize integer
#endif

James Tursa

Subject: mwpointer

From: Ailsa Zhan

Date: 27 Oct, 2009 02:40:22

Message: 3 of 3

"James Tursa" <aclassyguy_with_a_k_not_a_c@hotmail.com> wrote in message <hc53qk$4n7$1@fred.mathworks.com>...
> "Ailsa Zhan" <zhanzhihuan@gmail.com> wrote in message <hc3hoq$88a$1@fred.mathworks.com>...
> > Hi,
> >
> > I run the example fengdemo.f from matlab in CVF Version 6.6.
> >
> > and I use FPP also.
> >
> > Here is the error:
> >
> > --------------------Configuration: fengdemo - Win32 Debug--------------------
> > Compiling Fortran...
> > fengdemo.i
> > D:\Fortran Project\test pulseforce\test engcall\fengdemo.for(23) : Error: Syntax error, found ',' when expecting one of: ( : % . = =>
> > mwPointer engOpen, engGetVariable, mxCreateDoubleMatrix
> > -----------------------^
> > D:\Fortran Project\test pulseforce\test engcall\fengdemo.for(24) : Error: Syntax error, found END-OF-STATEMENT when expecting one of: ( : % . = =>
> > mwPointer mxGetPr
> > -----------------------^
> > D:\Fortran Project\test pulseforce\test engcall\fengdemo.for(25) : Error: Syntax error, found ',' when expecting one of: ( : % . = =>
> > mwpointer ep, T, D
> > ------------------^
> >
> >
> > Thank you for your help!
> >
> > Best Wishes,
> >
> > Ailsa
>
> What version of MATLAB are you running? Older versions of the MATLAB API did not have definitions for mwpointer etc. Try inserting these lines after the #include "fintrf.h":
>
> #include "fintrf.h"
> #ifndef mwpointer
> #define mwpointer integer
> #endif
> #ifndef mwPointer
> #define mwPointer integer
> #endif
> #ifndef mwsize
> #define mwsize integer
> #endif
> #ifndef mwSize
> #define mwSize integer
> #endif
>
> James Tursa

Thank James.
I try matlab version R2007b , still give error "Error: Syntax error, found END-OF-STATEMENT when expecting one of: ( : % . = =>".

thanks again.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
mwpointer Ailsa Zhan 26 Oct, 2009 03:09:02
rssFeed for this Thread

Contact us at files@mathworks.com