Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Compile Errors

cptfisher
Beginner
863 Views
Good Day,

I get the following errors when trying to compile a gateway mex file and I'm not sure why. Any help is appreciated:

aerocalc.f90(8): error #5082: Syntax error, found IDENTIFIER 'PLHS' when expecting one of: ( % [ : . = =>
mwpointer plhs(*), prhs(*)
----------^
aerocalc.f90(14): error #5082: Syntax error, found IDENTIFIER 'MXCREATEDOUBLEMATRIX' when expecting one of: ( % [ : . = =>
mwpointer mxcreatedoublematrix, mxgetpr
----------^
aerocalc.f90(15): error #5082: Syntax error, found IDENTIFIER 'MXGETM' when expecting one of: ( % [ : . = =>
mwpointer mxgetm, mxgetn
----------^
aerocalc.f90(17): error #5082: Syntax error, found IDENTIFIER 'TURBINECOMPONENTS_PR' when expecting one of: ( % [ : . = =>
mwpointer turbinecomponents_pr, y_pr
----------^
aerocalc.f90(20): error #5082: Syntax error, found IDENTIFIER 'M' when expecting one of: ( % [ : . = =>
mwpointer m, n
----------^
aerocalc.f90(21): error #5082: Syntax error, found IDENTIFIER 'SIZE' when expecting one of: ( % [ : . = =>
mwsize size
-------^
0 Kudos
1 Solution
mecej4
Honored Contributor III
863 Views
You probably did not add

include 'fintrf.h'

to your source file or, if you are using C style includes, did not specify that the C preprocessor shoud be used.

By themselves (i.e., without the header file defining 'mwpointer') the lines that you show are not valid Fortran declarations.

View solution in original post

0 Kudos
3 Replies
mecej4
Honored Contributor III
864 Views
You probably did not add

include 'fintrf.h'

to your source file or, if you are using C style includes, did not specify that the C preprocessor shoud be used.

By themselves (i.e., without the header file defining 'mwpointer') the lines that you show are not valid Fortran declarations.

0 Kudos
JVanB
Valued Contributor II
863 Views
try replacing mwpointer and mwsize with INTEGER(INT_PTR_KIND())
0 Kudos
cptfisher
Beginner
863 Views
It worked. I forgot about including that tag. Thanks
0 Kudos
Reply