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


Groups > comp.lang.c > #89949 > unrolled thread

how to execute cprog1.c

Started byCal Dershowitz <Cal@example.invalid>
First post2016-07-02 02:59 -0700
Last post2016-07-06 19:57 +0000
Articles 17 — 12 participants

Back to article view | Back to comp.lang.c


Contents

  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

#89949 — how to execute cprog1.c

FromCal Dershowitz <Cal@example.invalid>
Date2016-07-02 02:59 -0700
Subjecthow to execute cprog1.c
Message-ID<dtphk9F2uacU1@mid.individual.net>
Hello old friends,

I'm assuming vms software and have taken trepidatious steps into the 
gitworld. I'm doing this in the context of completing the exercises of 
_Intermediate Perl_, so I realize that this doesn't seem to be your 
topic if you're looking for contact on the headpin.

I do not intend to be an intentional troll and will accept any 
suggestions of how I figure out this toolchain as a neophyte in other 
places where my question were more topical. Keith, you and I buried the 
hatchet long ago, so don't go find it. My question will not be only be 
about C.

Again, topic purists, https://github.com/TBlazer66/island is a public 
posting of a standard c program. How does one execute it by download and 
installation?

Thanks for your comment,
-- 
Cal Dershowitz

[toc] | [next] | [standalone]


#89950

FromLuuk <luuk@invalid.lan>
Date2016-07-02 12:21 +0200
Message-ID<57779582$0$5873$e4fe514c@news.xs4all.nl>
In reply to#89949
On 02-07-16 11:59, Cal Dershowitz wrote:
> Hello old friends,
>
> I'm assuming vms software and have taken trepidatious steps into the
> gitworld. I'm doing this in the context of completing the exercises of
> _Intermediate Perl_, so I realize that this doesn't seem to be your
> topic if you're looking for contact on the headpin.
>
> I do not intend to be an intentional troll and will accept any
> suggestions of how I figure out this toolchain as a neophyte in other
> places where my question were more topical. Keith, you and I buried the
> hatchet long ago, so don't go find it. My question will not be only be
> about C.
>
> Again, topic purists, https://github.com/TBlazer66/island is a public
> posting of a standard c program. How does one execute it by download and
> installation?
>
> Thanks for your comment,


https://www.youtube.com/watch?v=B-ru-q_Bm2I

the 'interesting' stuff start at 02 mins 30 secs ....

[toc] | [prev] | [next] | [standalone]


#89954

From"James R. Kuyper" <jameskuyper@verizon.net>
Date2016-07-02 11:45 -0400
Message-ID<9d526c69-6d75-cb18-281d-8729e9f9339d@verizon.net>
In reply to#89949
On 07/02/2016 05:59 AM, Cal Dershowitz wrote:
> Hello old friends,
> 
> I'm assuming vms software and have taken trepidatious steps into the 
> gitworld. I'm doing this in the context of completing the exercises of 
> _Intermediate Perl_, so I realize that this doesn't seem to be your 
> topic if you're looking for contact on the headpin.
> 
> I do not intend to be an intentional troll and will accept any 
> suggestions of how I figure out this toolchain as a neophyte in other 
> places where my question were more topical. Keith, you and I buried the 
> hatchet long ago, so don't go find it. My question will not be only be 
> about C.
> 
> Again, topic purists, https://github.com/TBlazer66/island is a public 
> posting of a standard c program. How does one execute it by download and 
> installation?

Select the big green "Clone or download" button. A window pops up that
gives you a URL that can be use with SVN or git to download the files.
The button to the right of the URL causes it to be copied to your
clipboard. If you select "Use SSH", it shows a URL that can be used with
ssh for the same purpose. I don't have git installed on my current
system, and I couldn't get the SVN or SSH alternatives to work - there's
probably some details about how to use them that I don't know about.
However, there's also a "Download ZIP" option at the bottom of the
pop-up window, and that worked for me. For a package this small, another
option is to select each file name, and then copy and paste the contents
of that file from the screen to a text file.

This package comes with no script or instructions for building or
installing this package. The README references a the book "Intermediate
Perl", which might contain relevant instructions. 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

Note: cc is a symbolic link to gcc. The options listed are my preferred
set for using gcc, but none of them are actually needed to build this
particular program. You could just as easily have used

   gcc cprog1.c -o cprog1

When it's done, typing "cprog1" then causes the following line to be
printed:

Reading this line implies execution of c source initiated by perl.

[toc] | [prev] | [next] | [standalone]


#90066

FromCal Dershowitz <cal@example.invalid>
Date2016-07-06 01:39 -0700
Message-ID<du3uekFgc4qU1@mid.individual.net>
In reply to#89954
On 07/02/2016 08:45 AM, James R. Kuyper wrote:

> Select the big green "Clone or download" button. A window pops up that
> gives you a URL that can be use with SVN or git to download the files.
> The button to the right of the URL causes it to be copied to your
> clipboard. If you select "Use SSH", it shows a URL that can be used with
> ssh for the same purpose. I don't have git installed on my current
> system, and I couldn't get the SVN or SSH alternatives to work - there's
> probably some details about how to use them that I don't know about.
> However, there's also a "Download ZIP" option at the bottom of the
> pop-up window, and that worked for me. For a package this small, another
> option is to select each file name, and then copy and paste the contents
> of that file from the screen to a text file.

aha, the encoding will matter...
>
> This package comes with no script or instructions for building or
> installing this package. The README references a the book "Intermediate
> Perl", which might contain relevant instructions.


This is to be a "distribution," and they tell you to write the ass end 
of it first. Then a person hears about how directories and C compilers 
are brought to bear, and hence the post. The idioms I'm holding to are 
those of Gilligan's island, and the castaways need to figure out where 
they are so that they can get themselves through the ordeal and 
homeward. Now that juno closes in on jove, I find the extension to 
exploring the solar system apropos. If I recall correctly, that isn't 
far from your line of work.

> 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'.

I'll give it a try on windows when I get back there. Thanks for your 
comment, james.
-- 
Cal Dershowitz

[toc] | [prev] | [next] | [standalone]


#90083

FromJames Kuyper <jameskuyper@verizon.net>
Date2016-07-06 11:16 -0400
Message-ID<nlj7cp$4er$1@dont-email.me>
In reply to#90066
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?

[toc] | [prev] | [next] | [standalone]


#90120

FromCal Dershowitz <cal@example.invalid>
Date2016-07-07 23:00 -0700
Message-ID<du8trkFmeb6U1@mid.individual.net>
In reply to#90083
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

[toc] | [prev] | [next] | [standalone]


#90121

Fromluser droog <luser.droog@gmail.com>
Date2016-07-07 23:30 -0700
Message-ID<6651864b-d3f6-4f8e-bca8-84db5a7745f7@googlegroups.com>
In reply to#90120
On Friday, July 8, 2016 at 1:00:30 AM UTC-5, Cal Dershowitz wrote:
> 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....

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.

> >
> > 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?

Signals are defined by POSIX. comp.unix.programmer is
a more appropriate place to talk about those.

[toc] | [prev] | [next] | [standalone]


#90122

FromBen Bacarisse <ben.usenet@bsb.me.uk>
Date2016-07-08 10:09 +0100
Message-ID<8760sg5wdb.fsf@bsb.me.uk>
In reply to#90121
luser droog <luser.droog@gmail.com> writes:

> On Friday, July 8, 2016 at 1:00:30 AM UTC-5, Cal Dershowitz wrote:
<snip>
>> 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.

Some signals are defined by C -- six of them to be precise: SIGABRT,
SIGFPE, SIGILL, SIGINT, SIGSEGV and SIGTERM.  And C does have a few
things to say about handling signals in general, but not much.

-- 
Ben.

[toc] | [prev] | [next] | [standalone]


#90126

FromCal Dershowitz <cal@example.invalid>
Date2016-07-08 03:34 -0700
Message-ID<du9du4Fq66jU1@mid.individual.net>
In reply to#90121
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

[toc] | [prev] | [next] | [standalone]


#90127

Fromgazelle@shell.xmission.com (Kenny McCormack)
Date2016-07-08 10:57 +0000
Message-ID<nlo0uu$kk$2@news.xmission.com>
In reply to#90121
In article <6651864b-d3f6-4f8e-bca8-84db5a7745f7@googlegroups.com>,
luser droog  <luser.droog@gmail.com> wrote:
...
>If your file is "cprog1.c", then you have to type the "1",
>too.

That is just so picky.

Why can't the computer just do what I want?

-- 
Faith doesn't give you the answers; it just stops you from asking the questions.

[toc] | [prev] | [next] | [standalone]


#90124

FromUdyant Wig <udyantw@gmail.com>
Date2016-07-08 15:14 +0530
Message-ID<nlnsn0$27o$1@dont-email.me>
In reply to#90120

[Multipart message — attachments visible in raw view] — view raw

On 07/08/2016 11:30 AM, Cal Dershowitz wrote:
> 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:
>>>> [elided]
>>>> if I type
>>>>
>>>>       make cprog1
>>> [elided]
>>> 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.
>> [elided]
>
> Thx, james, I see the difference now:
> $ make cprog
> make: *** No rule to make target `cprog'. Stop.

  James Kuyper typed
make cprog1

  Cal Dershowitz typed
make cprog1.c

  and

make cprog

-- 
Udyant Wig

[toc] | [prev] | [next] | [standalone]


#89959

FromKeith Thompson <kst-u@mib.org>
Date2016-07-02 14:39 -0700
Message-ID<lnfurroh2o.fsf@kst-u.example.com>
In reply to#89949
Cal Dershowitz <Cal@example.invalid> writes:
[irrelevancies snipped]
> Again, topic purists, https://github.com/TBlazer66/island is a public 
> posting of a standard c program. How does one execute it by download and 
> installation?

That repo contains a one-line README, a sizable file called
baseline_mod_times.txt that appears to contain some program output,
and a C source file cprog1.c, with the following contents:

#include<stdio.h>
int main()
{
printf("Reading this line implies execution of c source initiated by perl.\n");
return 0;
}

This is a trivial program, of the same complexity as "hello, world".
I'm sure you don't need help with that, and I won't bother commenting
on the code.

Downloading the repo from GitHub is not difficult.  I used

    git clone https://github.com/TBlazer66/island

but other methods are available, and are documented on github.com
and elsewhere.

Nothing in the repo appears to have anything to do with Perl other
than mentioning it in the output of cprog1.  I see no connection
among any of the three files in the repo.  Whatever you're trying
to learn, this repo is probably not a good starting point.

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

[toc] | [prev] | [next] | [standalone]


#90069

FromCal Dershowitz <cal@example.invalid>
Date2016-07-06 02:30 -0700
Message-ID<du41ejFh2t6U1@mid.individual.net>
In reply to#89959
On 07/02/2016 02:39 PM, Keith Thompson wrote:
> Cal Dershowitz <Cal@example.invalid> writes:

> That repo contains a one-line README, a sizable file called
> baseline_mod_times.txt that appears to contain some program output,
> and a C source file cprog1.c, with the following contents:

You use the word "repo."
>
> Downloading the repo from GitHub is not difficult.  I used
>
>      git clone https://github.com/TBlazer66/island
>
> but other methods are available, and are documented on github.com
> and elsewhere.

$ pwd
/home/fred/Downloads/island-master
$ git clone https://github.com/TBlazer66/island
Cloning into 'island'...
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 0), reused 4 (delta 0), pack-reused 0
Unpacking objects: 100% (7/7), done.
Checking connectivity... done.
$ ls
baseline_mod_times.txt  cprog1.c  island  README
$ cd island/
$ ls
baseline_mod_times.txt  cprog1.c  README
$ cc cprog1.c   -o cprog1
$ ./cprog1
Reading this line implies execution of c source initiated by perl.
$

wow, well the output is false, but I have new island. I think of C as a 
stygian witch who needed a child syntax like perl to tell her where she 
is. But where's the compilers around here?

>
> Nothing in the repo appears to have anything to do with Perl other
> than mentioning it in the output of cprog1.  I see no connection
> among any of the three files in the repo.  Whatever you're trying
> to learn, this repo is probably not a good starting point.
>

It's primarily a perl learning exercise. Of course, perl can't get out 
of bed without C, so there is that connection, some say a child 
syntax...I'll try to leave those esoteric scraps for downthread after 
I've gotten a couple more useful things done.

<OT>

You seem to know github. Have I already compromised the integrity of 
this 3-hr tour by posting on usenet real values for:

$ git config --global user.name "snip"
$ git config --global user.email "snip"@snip.snip"

My thoughts were that these values were a minimum to provide to ask for 
collaboration. I have a config.pm file to house passwords to accompany 
these values on my local machine, so every revision has been kicking my 
rear in this direction. Furthermore, I created the gmail account for 
this purpose, but it *does* run on my system, or else it's no use to me.

I wonder how my perl script would tell me where C compilers are on my 
system, whatever the heck that is for this 15 minutes.
</OT>
--
Cal

[toc] | [prev] | [next] | [standalone]


#90085

FromKeith Thompson <kst-u@mib.org>
Date2016-07-06 08:40 -0700
Message-ID<lntwg2n5an.fsf@kst-u.example.com>
In reply to#90069
Cal Dershowitz <cal@example.invalid> writes:
> On 07/02/2016 02:39 PM, Keith Thompson wrote:
>> Cal Dershowitz <Cal@example.invalid> writes:
>
>> That repo contains a one-line README, a sizable file called
>> baseline_mod_times.txt that appears to contain some program output,
>> and a C source file cprog1.c, with the following contents:
>
> You use the word "repo."

Yes, I do.  If you're expecting that statement to elicit more
information, you'll have to give us some idea what you're looking
for.  Asking a question would be a good start.  ("Repo" is short for
"repository" if that's what you're wondering.)

>> Downloading the repo from GitHub is not difficult.  I used
>>
>>      git clone https://github.com/TBlazer66/island
>>
>> but other methods are available, and are documented on github.com
>> and elsewhere.
>
> $ pwd
> /home/fred/Downloads/island-master
> $ git clone https://github.com/TBlazer66/island
> Cloning into 'island'...
> remote: Counting objects: 7, done.
> remote: Compressing objects: 100% (7/7), done.
> remote: Total 7 (delta 0), reused 4 (delta 0), pack-reused 0
> Unpacking objects: 100% (7/7), done.
> Checking connectivity... done.
> $ ls
> baseline_mod_times.txt  cprog1.c  island  README
> $ cd island/
> $ ls
> baseline_mod_times.txt  cprog1.c  README
> $ cc cprog1.c   -o cprog1
> $ ./cprog1
> Reading this line implies execution of c source initiated by perl.
> $

It looks like you had already cloned the "island" repository, or perhaps
obtained a copy by some other means.  Now you've cloned it again into a
subdirectory.

> wow, well the output is false, but I have new island. I think of C as a 
> stygian witch who needed a child syntax like perl to tell her where she 
> is. But where's the compilers around here?

What?  Are you asking us where the compilers are on your system?  How do
you expect us to have any idea?

>> Nothing in the repo appears to have anything to do with Perl other
>> than mentioning it in the output of cprog1.  I see no connection
>> among any of the three files in the repo.  Whatever you're trying
>> to learn, this repo is probably not a good starting point.
>
> It's primarily a perl learning exercise. Of course, perl can't get out 
> of bed without C, so there is that connection, some say a child 
> syntax...I'll try to leave those esoteric scraps for downthread after 
> I've gotten a couple more useful things done.

Perl is implemented in C, its syntax is superficially similar,
and there are facilities for calling C code from Perl.  But it's
still a distinct language, and you can learn Perl by itself.

But not from that particular repository, which has no Perl content.
And not here; this is comp.lang.c.

[...]

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

[toc] | [prev] | [next] | [standalone]


#90248

FromCal Dershowitz <cal@example.invalid>
Date2016-07-11 23:33 -0700
Message-ID<dujh9fF7vrlU1@mid.individual.net>
In reply to#90085
On 07/06/2016 08:40 AM, Keith Thompson wrote:
 > Cal Dershowitz <cal@example.invalid> writes:
 >> On 07/02/2016 02:39 PM, Keith Thompson wrote:
 >>> Cal Dershowitz <Cal@example.invalid> writes:

[x-posted to c.u.p., hope I set f'ups thereto]

 >>
 >>> That repo contains a one-line README, a sizable file called
 >>> baseline_mod_times.txt that appears to contain some program output,
 >>> and a C source file cprog1.c, with the following contents:
 >>
 >> You use the word "repo."
 >
 > Yes, I do.  If you're expecting that statement to elicit more
 > information, you'll have to give us some idea what you're looking
 > for.  Asking a question would be a good start.  ("Repo" is short for
 > "repository" if that's what you're wondering.)

You'll have to forgive me, Keith, repo's were R Lane vehicles in my day 
job until you informed me of what is likely a colloquialism among people 
you know in the syntax world. I instantly approve of it because it's 
fewer keystrokes.

Also, I would like to thank all those to whom I did not respond, as it 
makes a messy thread...read every word. If "making" were baseball, I 
would have struck out, but I was clodhopping through another toolchain.

 >>> Downloading the repo from GitHub is not difficult.  I used
 >>>
 >>>       git clone https://github.com/TBlazer66/island
<snip>
 >It looks like you had already cloned the "island" repository, or perhaps
 > obtained a copy by some other means.  Now you've cloned it again into a
 > subdirectory.

I'm still working on this. My idea is that I should have the git 
identities on windows and linux be different, but even as I type wonder 
if that is what branching is for. For the purposes of moving forward in 
c.u.p., assume that I am developing on that platform.

 >> wow, well the output is false, but I have new island. I think of C as a
 >> stygian witch who needed a child syntax like perl to tell her where she
 >> is. But where's the compilers around here?
 >
 > What?  Are you asking us where the compilers are on your system?  How do
 > you expect us to have any idea?

Because I will tell you:

Summary of my perl5 (revision 5 version 18 subversion 2) configuration:

Platform:
osname=linux, osvers=3.13.0-79-generic, 
archname=x86_64-linux-gnu-thread-multi
uname='linux lgw01-37 3.13.0-79-generic #123-ubuntu smp fri feb 19 
14:27:58 utc 2016 x86_64 x86_64 x86_64 gnulinux '
config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN 
-D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 
-Wformat -Werror=format-security -Dldflags= -Wl,-Bsymbolic-functions 
-Wl,-z,relro -Dlddlflags=-shared -Wl,-Bsymbolic-functions -Wl,-z,relro 
-Dcccdlflags=-fPIC -Darchname=x86_64-linux-gnu -Dprefix=/usr 
-Dprivlib=/usr/share/perl/5.18 -Darchlib=/usr/lib/perl/5.18 
-Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 
-Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local 
-Dsitelib=/usr/local/share/perl/5.18.2 
-Dsitearch=/usr/local/lib/perl/5.18.2 -Dman1dir=/usr/share/man/man1 
-Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 
-Dsiteman3dir=/usr/local/man/man3 -Duse64bitint -Dman1ext=1 
-Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm 
-Uusesfio -Uusenm -Ui_libutil -Uversiononly -DDEBUGGING=-g 
-Doptimize=-O2 -Duseshrplib -Dlibperl=libperl.so.5.18.2 -des'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64',
optimize='-O2 -g',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector 
-fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='4.8.2', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib 
/usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib
libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
perllibs=-ldl -lm -lpthread -lc -lcrypt
libc=, so=so, useshrplib=true, libperl=libperl.so.5.18.2
gnulibc_version='2.19'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib -fstack-protector'

^^^^^that is myconfig-------
Local date and time Mon Jul 11 22:09:38 2016

Now, if I'm on a boat, need to get home, I can frame the next question, 
but since non-standard headers are involved will wait for a tick.

https://github.com/TBlazer66/island/blob/master/compiler_find.pl

...latest commit, and I'm just shooting at the backboard, including 
useful software with some measure of documentation. With respect, Keith, 
I submit that knowing how to link your C programs is *vital* to making 
them happen, so I don't think that I'm really intruding on the 
topic-space so much as extending it. Maybe in the direction that I 
fought you and Chuck on during the bad old times.

 > Perl is implemented in C, its syntax is superficially similar,
 > and there are facilities for calling C code from Perl.  But it's
 > still a distinct language, and you can learn Perl by itself.
 >

Agreed. I stand by my "c is a stygian witch" contention and claim 
further that the "eye" is an early version of an execution model. The 
other sisters flake out without the eye...they don't die...they flail 
around. It's not meant as a dig...only perseus can make them drop the 
eye...Tumbolia!....

--
Cal Dershowitz

"Like another set of crones at the oldest levels of both Germanic and 
Norse mythology, they had but one eye and one tooth among them. These 
were shared and the sisters took turns in using them. By stealing their 
eye while they were passing it between them, the hero Perseus forced 
them to tell the whereabouts of their sisters, the Gorgons, ransoming 
the seeing eye for the information. The Graeae can be compared with the 
three spinners of Destiny (the Moirae), the northern European Norns, or 
the Baltic goddess Laima and her two sisters. In the movie Clash of the 
Titans, the Graeae were called the Stygian Witches."

[toc] | [prev] | [next] | [standalone]


#90089

FromReal Troll <real.troll@trolls.com>
Date2016-07-06 18:38 +0100
Message-ID<nljfp0$qfl$1@gioia.aioe.org>
In reply to#89949
On 02/07/2016 10:59, Cal Dershowitz wrote:
> Hello old friends,
>
> I'm assuming vms software and have taken trepidatious steps into the 
> gitworld. I'm doing this in the context of completing the exercises of 
> _Intermediate Perl_, so I realize that this doesn't seem to be your 
> topic if you're looking for contact on the headpin.
>
> I do not intend to be an intentional troll and will accept any 
> suggestions of how I figure out this toolchain as a neophyte in other 
> places where my question were more topical. Keith, you and I buried 
> the hatchet long ago, so don't go find it. My question will not be 
> only be about C.
>
> Again, topic purists, https://github.com/TBlazer66/island is a public 
> posting of a standard c program. How does one execute it by download 
> and installation?
>
> Thanks for your comment,


You are using Windows 7 so why not use Microsoft Visual Studio 12, 13 or 
15.  The Express editions or what they now call Community editions are 
free and you can create, edit, compile and debug all your programs from 
within the VS IDE window.

[toc] | [prev] | [next] | [standalone]


#90094

Fromraltbos@xs4all.nl (Richard Bos)
Date2016-07-06 19:57 +0000
Message-ID<577d627e.27087468@news.xs4all.nl>
In reply to#90089
Real Troll <real.troll@trolls.com> wrote:

> You are using Windows 7 so why not use Microsoft Visual Studio 12, 13 or 
> 15.

Or alternatively, Dev-C++, Code::Blocks or Pelles C.

Richard

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.c


csiph-web