I am trying to subdivide the src directory to move some src files that seldom are changed to a more out of the way location. line 2: Error: nondigit in statement number field. The following errors were produced: line 1: Error: illegal continuation card ignored. Error: Expecting END PROGRAM statesment at (1) task1.f90:18:2: S (B-A)/ (3N) (F (A)+F (B)+E+G) 1. in order to have an executable: PROGRAM pname. $ gfortran-6 -std=f2008 -DNAMED_ENUM -c enum. Question 1: I have a c++ project that I am trying to re-organize. I wrote the following simple fortran program. DO 10 I1,10 WRITE (6,) I 10 CONTINUE Note : It is not permitted within the range of a DO to change the value of I Same code, but uses FORMAT command.
Examples This code will print 10 numbers on the screen. $ ifort -std08 -free -g -warn all -traceback -DNAMED_ENUM -c enum.FĮnum.F(4): error #5082: Syntax error, found '::' when expecting one of: Įnum.F(5): error #6163: This statement is not in the correct order.Įnum.F(6): error #6163: This statement is not in the correct order.Įnum.F(7): error #8131: An END ENUM statement occurred without a corresponding ENUM statement.Ĭompilation aborted for enum.F (code 1) $ gfortran-6 -std=f2008 -c enum.F The DO Statement This statement makes it possible to execute a section of a program repeatedly, with automatic changes in the value of an integer variable between repetitions. We suppose to write a program that calculates cos(x2). Can you please help me understand what I am doing wrong? ! enum.FĮnd module enumtest $ ifort -std08 -free -g -warn all -traceback -c enum.F I'm a Fortran 77 learner, I'm new so don'n know much about Fortran. I cannot build this with Intel 17 or GCC 6.2.
Both and show an example of a named enum in Fortran with ISO_C_BINDING.