public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: d_cary@my-deja.com
To: help-gcc@gnu.org
Subject: Re: Newbie - gcc apparently not building obj file
Date: Wed, 05 Jan 2000 09:25:00 -0000	[thread overview]
Message-ID: <84vu46$565$1@nnrp1.deja.com> (raw)
In-Reply-To: <PKwc4.1195$WM5.26589@dfiatx1-snr1.gtei.net>

The first thing you need to do is
  ls -l
to make sure that gcc is really creating the output file ``hello'',
and setting the "executable" bit (there should be a "x" in the
permissions column of the listing for ``hello'', but a '-' in the same
column for ``hello.c'').

On my machine, I used to have to type
  ./hello
to execute a program in the current directory. My sysadmin claims it's
a "security feature". Without the ``./'', my machine looks in the
(supposedly "secure") locations for executables ( my ``path'' includes
lots of directories that end in ``/bin/'' ). When it doesn't find it
there, I get the ``command not found'' message. Don't tell him I added
the "./" directory to the end of my path.

By the way, folks around here use the term ``object file'' to talk
about (non-executable) intermediate files sometimes generated by the
compiler (if you use the -c option) and ending with the extension
``.o''.

Richard De Berry <deberryr@yahoo.com>, in frustration, wrote:
> I enter
>    gcc -o hello hello.c
...
>, then
>    hello
...
> I get a command not found message.


Sent via Deja.com http://www.deja.com/
Before you buy.

WARNING: multiple messages have this Message-ID
From: d_cary@my-deja.com
To: help-gcc@gnu.org
Subject: Re: Newbie - gcc apparently not building obj file
Date: Sat, 01 Apr 2000 00:00:00 -0000	[thread overview]
Message-ID: <84vu46$565$1@nnrp1.deja.com> (raw)
Message-ID: <20000401000000.VE7-S2xPvG9kRPoBp-06E7_IfA5VEBCUYcTCa3Gcrhc@z> (raw)
In-Reply-To: <PKwc4.1195$WM5.26589@dfiatx1-snr1.gtei.net>

The first thing you need to do is
  ls -l
to make sure that gcc is really creating the output file ``hello'',
and setting the "executable" bit (there should be a "x" in the
permissions column of the listing for ``hello'', but a '-' in the same
column for ``hello.c'').

On my machine, I used to have to type
  ./hello
to execute a program in the current directory. My sysadmin claims it's
a "security feature". Without the ``./'', my machine looks in the
(supposedly "secure") locations for executables ( my ``path'' includes
lots of directories that end in ``/bin/'' ). When it doesn't find it
there, I get the ``command not found'' message. Don't tell him I added
the "./" directory to the end of my path.

By the way, folks around here use the term ``object file'' to talk
about (non-executable) intermediate files sometimes generated by the
compiler (if you use the -c option) and ending with the extension
``.o''.

Richard De Berry <deberryr@yahoo.com>, in frustration, wrote:
> I enter
>    gcc -o hello hello.c
...
>, then
>    hello
...
> I get a command not found message.


Sent via Deja.com http://www.deja.com/
Before you buy.

  reply	other threads:[~2000-01-05  9:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-04 17:11 Richard De Berry
2000-01-05  9:25 ` d_cary [this message]
2000-04-01  0:00   ` d_cary
2000-04-01  0:00 ` Richard De Berry

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='84vu46$565$1@nnrp1.deja.com' \
    --to=d_cary@my-deja.com \
    --cc=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).