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

Error #8284 while running a .f90 code

T__Dhinesh
Beginner
5,970 Views

Hi,

I have an old .f90 FORTRAN code (gfortran). I am trying to run the code from Visual Studio but I see some errors. I have the following tools/ compilers in my windows 7 64 bit system,

Visual Studio 2013 premium

Visual FORTRAN Compiler XE 14.0 Update 3

I could run the code(s) from the command prompt using gfortran compiler. I want to run the same code in visual studio so that I can edit and debug the code easily (I am new to Visual Studio though).

I added the below in the Visual studio directory in Tools > Options > Intel Composer XE > Visual Fortran > Compilers,

Includes: $(FNL_DIR)\Intel64\include\dll

Libraries: $(FNL_DIR)\Intel64\lib

I couldn’t open the .f90 script in visual studio (File > Open > Project) as it is not seeing any .f90 files from my folder. But I could create new FORTRAN .f90 code (File > New > Project >Intel ® Visual Fortran > Console Application > Main Program Code) and execute “Hello World” program successfully. I tried copy the main code and overwrite the hello world program with the main code and added all the other files path from Project > Add Existing Item, and below are the errors I got,

Error      1             error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [XNEW]             C:\Users\S267564\Desktop\sCO2 Codes\sel_sco2_brayton_model\Netlib\subplex\simplx.f  161       

Error      2             error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [XNEW]             C:\Users\S267564\Desktop\sCO2 Codes\sel_sco2_brayton_model\Netlib\subplex\simplx.f  175       

Error      3             Compilation Aborted (code 1)      C:\Users\S267564\Desktop\sCO2 Codes\sel_sco2_brayton_model\Netlib\subplex\simplx.f  1            

Error      4             error #7421: A constant or general expression must appear in a format list in this context.   [AI]             C:\Users\S267564\Desktop\sCO2 Codes\sel_sco2_brayton_model\example_fortran_program.f90   91          

Error      5             error #6185: This constant is out-of-range in a format list.   [0]               C:\Users\S267564\Desktop\sCO2 Codes\sel_sco2_brayton_model\example_fortran_program.f90   91          

Error      6             error #6181: An extra comma appears in the format list.   [,A,F]               C:\Users\S267564\Desktop\sCO2 Codes\sel_sco2_brayton_model\example_fortran_program.f90   91          

Error      7             error #7421: A constant or general expression must appear in a format list in this context.   [AI]             C:\Users\S267564\Desktop\sCO2 Codes\sel_sco2_brayton_model\example_fortran_program.f90   95          

Error      8             error #6185: This constant is out-of-range in a format list.   [0]               C:\Users\S267564\Desktop\sCO2 Codes\sel_sco2_brayton_model\example_fortran_program.f90   95          

Error      9             error #6181: An extra comma appears in the format list.   [,A,F]               C:\Users\S267564\Desktop\sCO2 Codes\sel_sco2_brayton_model\example_fortran_program.f90   95          

Error      10           Compilation Aborted (code 1)      C:\Users\S267564\Desktop\sCO2 Codes\sel_sco2_brayton_model\example_fortran_program.f90   1            

 

 I don’t understand the errors while it is successfully running in command prompt using gfortran compiler.

Please help me to find the errors. Also please advise me why I couldn’t able to open .f90 file directly in visual studio (File > Open > Project).

Thank you.

 

0 Kudos
24 Replies
gib
New Contributor II
853 Views

I was just commenting on the word "Solution", which to me does not convey what it really is.

0 Kudos
mecej4
Honored Contributor III
853 Views

gib wrote:
 I was just commenting on the word "Solution", which to me does not convey what it really is. 

Indeed. So many Solutions, nary a Problem in sight!

In the field of software, so many common words are used with different meanings than usual that newcomers tend to be confused. Consider "regression", "issue", "trunk", "chain", "clobber", "stack", "garbage", etc. In the early days of computing, printed glossaries of software terms were common.

0 Kudos
gib
New Contributor II
853 Views

I like "mangling".  The one I'm most acquainted with is "crash".  I'm also old enough to recall "thrashing", which is what the Burroughs machine at UoA used to do frequently.

0 Kudos
jimdempseyatthecove
Honored Contributor III
853 Views

I like MUNG a recursive acronym

Mung Until No Good
(Mung Until No Good) Until No Good
((Mung Until No Good) Until No Good) Until No Good
...

Jim Dempsey

0 Kudos
Reply