public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Compiling file with subroutines using gfortran
@ 2023-01-01  8:52 Hans Lonsdale
  2023-01-01 11:59 ` Patrick Begou
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Lonsdale @ 2023-01-01  8:52 UTC (permalink / raw)
  To: Gcc Help



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-01 16:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-01  8:52 Compiling file with subroutines using gfortran Hans Lonsdale
2023-01-01 11:59 ` Patrick Begou
2023-01-01 13:32   ` Jonathan Wakely
2023-01-01 14:41     ` Hans Lonsdale
2023-01-01 16:21     ` Patrick Begou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).