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


Groups > comp.lang.c > #90083

Re: how to execute cprog1.c

From James Kuyper <jameskuyper@verizon.net>
Newsgroups comp.lang.c
Subject Re: how to execute cprog1.c
Date 2016-07-06 11:16 -0400
Organization A noiseless patient Spider
Message-ID <nlj7cp$4er$1@dont-email.me> (permalink)
References <dtphk9F2uacU1@mid.individual.net> <9d526c69-6d75-cb18-281d-8729e9f9339d@verizon.net> <du3uekFgc4qU1@mid.individual.net>

Show all headers | View raw


On 07/06/2016 04:39 AM, Cal Dershowitz wrote:
> On 07/02/2016 08:45 AM, James R. Kuyper wrote:
...
>> However, this
>> particular program doesn't require anything complicated. On my machine,
>> if I type
>>
>>      make cprog1
>>
>> the make command creates a command that produces the desired results:
>>
>> cc -ansi -pedantic -Wall -Wpointer-arith -Wcast-align
>> -Wstrict-prototypes -Wmissing-prototypes    cprog1.c   -o cprog1
> 
> Getting this functionality would be victory enough for this thread. I'm 
> on my linux partition now and falling short:
> $ pwd
> /home/fred/Downloads/island-master
> $ make cprog1.c
> make: Nothing to be done for `cprog1.c'.

There is a very tiny 2-character difference between the command line I
wrote and the one that you wrote. Those two characters are absolutely
critical. If you understood what "make" does, you'd be considerably less
likely to make that mistake.

Alternatively, you could simply execute the command line that I quoted
which was generated and executed by make.

You seem surprisingly unfamiliar with how to build C programs using
command line utilities. Do you normally rely on a GUI of some kind to do
it for you?

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