public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Hans Lonsdale <hanslonsdale@mailfence.com>
Cc: Gcc Help <gcc-help@gcc.gnu.org>
Subject: Re: no input files when calling gfortran
Date: Sun, 1 Jan 2023 13:31:28 +0000	[thread overview]
Message-ID: <CAH6eHdT1RkobnGVvtoTbQFtOtfEDCvm8eEJ_pCMPR3EFD1EZfg@mail.gmail.com> (raw)
In-Reply-To: <1311924207.730197.1672533942851@ichabod.co-bxl>

[-- Attachment #1: Type: text/plain, Size: 491 bytes --]

On Sun, 1 Jan 2023, 11:43 Hans Lonsdale via Gcc-help, <gcc-help@gcc.gnu.org>
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.

  reply	other threads:[~2023-01-01 13:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-01  0:45 Hans Lonsdale
2023-01-01 13:31 ` Jonathan Wakely [this message]
2023-01-01 15:14   ` Hans Lonsdale
2023-01-01 15:48     ` Tom Kacvinsky
2023-01-01 16:05       ` Hans Lonsdale

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH6eHdT1RkobnGVvtoTbQFtOtfEDCvm8eEJ_pCMPR3EFD1EZfg@mail.gmail.com \
    --to=jwakely.gcc@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=hanslonsdale@mailfence.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).