From: Ailsa Zhan on
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
From: James Tursa on
"Ailsa Zhan" <zhanzhihuan(a)gmail.com> wrote in message <hc3hoq$88a$1(a)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
From: Ailsa Zhan on
"James Tursa" <aclassyguy_with_a_k_not_a_c(a)hotmail.com> wrote in message <hc53qk$4n7$1(a)fred.mathworks.com>...
> "Ailsa Zhan" <zhanzhihuan(a)gmail.com> wrote in message <hc3hoq$88a$1(a)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.
 | 
Pages: 1
Prev: c -code
Next: need to solve double integration