Re: no input files when calling gfortran

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

 




> ----------------------------------------
> From: Tom Kacvinsky via Gcc-help <gcc-help@xxxxxxxxxxx>
> Sent: Sun Jan 01 16:48:06 CET 2023
> To: Gcc Help <gcc-help@xxxxxxxxxxx>
> Subject: Re: no input files when calling gfortran
> 
> 
> On Sun, Jan 1, 2023 at 10:34 AM Hans Lonsdale via Gcc-help <
> gcc-help@xxxxxxxxxxx> wrote:
> 
> >
> >
> > January 1, 2023 at 2:31:28 PM CET Jonathan Wakely <jwakely.gcc@xxxxxxxxx>
> > wrote:
> >
> > On Sun, 1 Jan 2023, 11:43 Hans Lonsdale via Gcc-help, <
> > gcc-help@xxxxxxxxxxx> wrote:
> >
> > Am trying to compile a free-format fortran file with some subroutines in
> > it, with gfortran complaining
> > about the file.  What is going on?
> >
> > gfortran -O3 -ffree-form -o kamkrai-sort.f
> > gfortran: fatal error: no input files; unwilling to write output files
> > compilation terminated.
> >
> > The -o option names the output file, but you have told the compiler to use
> > your input file as the output file.
> >
> > What is the appropriate command that generates the object file only ?
> >
> 
> gfortran -O3 -ffree-form -c kamkrai-sort.f

I tried your suggestion but I am getting 

 recursive subroutine quicksort (array)
Error: Unclassifiable statement at (1)

end subroutine quicksort
Error: Expecting END PROGRAM statement at (1)

But this is just a file with some variables and a recursive subroutine.



-- 
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