From: Vinod Kumar on
Hi all,
I am trying to use MATLAB engine in IntelVisualFortran 10.1. I tried to use the test code provided by Mathworks but that does not work. :(
but when I compile this fengdemo.F.F, I get the following error... ;(

Error 2 Error: Illegal character in statement label field [/] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 2
Error 3 Error: Illegal character in statement label field [*] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 2
Error 4 Error: Illegal character in statement label field [*] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 3
Error 5 Error: Illegal character in statement label field [f] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 3
Error 6 Error: Illegal character in statement label field [i] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 3
Error 7 Error: First statement in file must not be continued C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 3
Error 8 Error: Illegal character in statement label field [*] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 4
Error 9 Error: Syntax error, found '-' when expecting one of: => = / . ( :: , <END-OF-STATEMENT> ; : ) % C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 3
Error 10 Error: Illegal character in statement label field [*] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 5
Error 11 Error: Syntax error, found IDENTIFIER 'THEDECLARATIONOFTHEPOINTERTYPENEEDED' when expecting one of: <END-OF-STATEMENT> ; C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 4
Error 12 Error: Illegal character in statement label field [*] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 6
Error 13 Error: Illegal character in statement label field [*] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 7
Error 14 Error: Illegal character in statement label field [C] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 7
Error 15 Error: Illegal character in statement label field [o] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 7
Error 16 Error: Illegal character in statement label field [*] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 8
Error 17 Error: Illegal character in statement label field [A] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 8
Error 18 Error: Illegal character in statement label field [l] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 8
Error 19 Error: Illegal character in statement label field [*] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 9
Error 20 Error: Illegal character in statement label field [/] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 9
Error 23 Error: Illegal character in statement label field [d] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 12
Error 24 Error: Lead underscore not allowed C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 12
Error 25 Error: Unrecognized token '|' skipped C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 12
Error 26 Error: Unrecognized token '|' skipped C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 12
Error 27 Error: Lead underscore not allowed C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 12
Error 58 Error: Illegal character in statement label field [/] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 45
Error 59 Error: Illegal character in statement label field [*] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 45
Error 60 Error: Illegal character in statement label field [*] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 46
Error 61 Error: Illegal character in statement label field [C] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 46
Error 62 Error: Illegal character in statement label field [o] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 46
Error 63 Error: Illegal character in statement label field [*] C:\Program Files\MATLAB\R2009b\extern\include\fintrf.h 47
Error 64 Severe: Too many errors, exiting
Error 65 Compilation Aborted (code 1) c:\Documents and Settings\vkumar\Desktop\New Folder\fengdemo.f 1


I don't know what is the problem.

Any help would be highly appreciated.

Thank you in advance