Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #90126

Re: how to execute cprog1.c

From Cal Dershowitz <cal@example.invalid>
Newsgroups comp.lang.c
Subject Re: how to execute cprog1.c
Date 2016-07-08 03:34 -0700
Message-ID <du9du4Fq66jU1@mid.individual.net> (permalink)
References (1 earlier) <9d526c69-6d75-cb18-281d-8729e9f9339d@verizon.net> <du3uekFgc4qU1@mid.individual.net> <nlj7cp$4er$1@dont-email.me> <du8trkFmeb6U1@mid.individual.net> <6651864b-d3f6-4f8e-bca8-84db5a7745f7@googlegroups.com>

Show all headers | View raw


On 07/07/2016 11:30 PM, luser droog wrote:

> Still mistyped. Make has an implicit built-in rule that
> if you ask for an executable (a bare filename without an
> extension) and there is a .c file with the same base name,
> then it will invoke the C compiler upon it.
>
> If your file is "cprog1.c", then you have to type the "1",
> too.

Uggh.

$ make cprog1
cc     cprog1.c   -o cprog1
$ ./cprog1
Reading this line implies execution of c source initiated by perl.
$

Danke schoen.

>> Is SIGALRM something defined in the contemporary C standard?
>
> Signals are defined by POSIX. comp.unix.programmer is
> a more appropriate place to talk about those.
>

I think I will pursue this there.
-- 
Cal Dershowitz

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

how to execute cprog1.c Cal Dershowitz <Cal@example.invalid> - 2016-07-02 02:59 -0700
  Re: how to execute cprog1.c Luuk <luuk@invalid.lan> - 2016-07-02 12:21 +0200
  Re: how to execute cprog1.c "James R. Kuyper" <jameskuyper@verizon.net> - 2016-07-02 11:45 -0400
    Re: how to execute cprog1.c Cal Dershowitz <cal@example.invalid> - 2016-07-06 01:39 -0700
      Re: how to execute cprog1.c James Kuyper <jameskuyper@verizon.net> - 2016-07-06 11:16 -0400
        Re: how to execute cprog1.c Cal Dershowitz <cal@example.invalid> - 2016-07-07 23:00 -0700
          Re: how to execute cprog1.c luser droog <luser.droog@gmail.com> - 2016-07-07 23:30 -0700
            Re: how to execute cprog1.c Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-07-08 10:09 +0100
            Re: how to execute cprog1.c Cal Dershowitz <cal@example.invalid> - 2016-07-08 03:34 -0700
            Re: how to execute cprog1.c gazelle@shell.xmission.com (Kenny McCormack) - 2016-07-08 10:57 +0000
          Re: how to execute cprog1.c Udyant Wig <udyantw@gmail.com> - 2016-07-08 15:14 +0530
  Re: how to execute cprog1.c Keith Thompson <kst-u@mib.org> - 2016-07-02 14:39 -0700
    Re: how to execute cprog1.c Cal Dershowitz <cal@example.invalid> - 2016-07-06 02:30 -0700
      Re: how to execute cprog1.c Keith Thompson <kst-u@mib.org> - 2016-07-06 08:40 -0700
        Re: how to execute cprog1.c Cal Dershowitz <cal@example.invalid> - 2016-07-11 23:33 -0700
  Re: how to execute cprog1.c Real Troll <real.troll@trolls.com> - 2016-07-06 18:38 +0100
    Re: how to execute cprog1.c raltbos@xs4all.nl (Richard Bos) - 2016-07-06 19:57 +0000

csiph-web