public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Tom Kacvinsky <tkacvins@gmail.com>
To: Gcc Help <gcc-help@gcc.gnu.org>
Subject: Re: no input files when calling gfortran
Date: Sun, 1 Jan 2023 10:48:06 -0500	[thread overview]
Message-ID: <CAG_eJLfQ6cTV3ocyLs87nyTQPYDbRaSFX7ide2SHJqpPO0UhHQ@mail.gmail.com> (raw)
In-Reply-To: <1165150527.763388.1672586042114@ichabod.co-bxl>

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

On Sun, Jan 1, 2023 at 10:34 AM Hans Lonsdale via Gcc-help <
gcc-help@gcc.gnu.org> wrote:

>
>
> January 1, 2023 at 2:31:28 PM CET Jonathan Wakely <jwakely.gcc@gmail.com>
> wrote:
>
> 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.
>
> What is the appropriate command that generates the object file only ?
>

gfortran -O3 -ffree-form -c kamkrai-sort.f

Or if you want to name the object file differently,

gfortran -O3 -ffree-form -c  kamkrai-sort.f -o some_other_name.o

  reply	other threads:[~2023-01-01 15:48 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
2023-01-01 15:14   ` Hans Lonsdale
2023-01-01 15:48     ` Tom Kacvinsky [this message]
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=CAG_eJLfQ6cTV3ocyLs87nyTQPYDbRaSFX7ide2SHJqpPO0UhHQ@mail.gmail.com \
    --to=tkacvins@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /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).