Compiling file with subroutines using gfortran

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




I want to compile a file containing a number of subroutines.

I am using the command

gfortran -O3 -ffree-form -o myfile.f

But getting problems with recursive and END PROGRAM statement.

All I want is making the object file.

44 | recursive subroutine quicksort (array)
      | 1
Error: Unclassifiable statement at (1)
myfile.f:112:3:

  112 | end subroutine quicksort
      |   1
Error: Expecting END PROGRAM statement at (1)
myfile.f:122:35:

Have done

gfortran -O3 -ffree-form -o myfile.f

The command is supposed to make the object file, but I get errors with END PROGRAM declaration.


-- 
Sent with https://mailfence.com  
Secure and private email



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux