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


Groups > comp.lang.c > #90120

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-07 23:00 -0700
Message-ID <du8trkFmeb6U1@mid.individual.net> (permalink)
References <dtphk9F2uacU1@mid.individual.net> <9d526c69-6d75-cb18-281d-8729e9f9339d@verizon.net> <du3uekFgc4qU1@mid.individual.net> <nlj7cp$4er$1@dont-email.me>

Show all headers | View raw


On 07/06/2016 08:16 AM, James Kuyper wrote:
> 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.

Thx, james, I see the difference now:
$ make cprog
make: *** No rule to make target `cprog'. Stop.

This is the linux side. The windows side was much more interesting, but 
I failed to capture output. Since github is such a widely-used resource 
for promoting open source projects held together by the glue of C, I'm 
gonna still claim relevance to this newsgroup until I get a few things 
ironed out. I'm happy to follow suggestions to better places to talk 
about this.  For example email list discussion, never done that before....

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

I can always make it happen with actual keystrokes, if my compiler is 
listening. What if I can't tap the keys to make that happen?
>
> 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?
>

I worked through the K&R 2 material whilst on a windows machine. Dan Pop 
was one of the better reads in c.l.c. back then. He encouraged me to 
make myself as comfortable in my development environment as I could.

When the divisions that would segregate the internet blew through clc, I 
retreated to fortran, the language of my instruction. Nothing in a 
fortran module gets off the ground without a C binding. I watched as the 
languages defined that coupling, which was awesome, and now I want to 
gain access to fortran programs by means of C. C is to be the caller, 
but it has to be informed about where it is.

$ perl config4.pl
signal #17 = CHLD
SIGALRM is 14
$

Is SIGALRM something defined in the contemporary C standard?
-- 
Cal

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