Re: was: GCC not working - Help worked.


Subject: Re: was: GCC not working - Help worked.
From: Leslie Everett (leverett@tiac.net)
Date: Fri Nov 10 2000 - 21:22:48 MST


  
Black <cpa@ece.cmu.edu> wrote:

> Under Linux (unix, etc...) in order to be able to run an executable, the
> system has to be able to know where it is. So, if you just compiled and
> got an object file called hello, the system doesn't know that it is
> something that you might actually want to run. So, to run it you have two
> options. You can call hello using and give it a path so that the kernel
> knows where to find the program. If hello is in the same directory as you
> are, you can just type ./hello and it should run. The '.' resolves to the
> current directory. If it is a program you have written that you want to
> run anywhere, you can set your PATH variable so that it points to the
> directory that contains the program you wish to run. You can see where
> your PATH points to now by typing >echo $PATH. There are various ways to
> append new directories to your PATH depending on the shell you are
> running. I don't remember what it is under bash, but under tcsh it is just
> setenv PATH <new directory>:$PATH
>
> I hope that helps.
>
> -Christopher

Christopher,

Calling the program with the ./hello line works. I haven't tried setting
the PATH yet, but I'm glad at least now I see GCC is working. Linux is
best, Linux users are tops! Thanks again for your quick and informative
help!

- Leslie Everett



This archive was generated by hypermail 2a24 : Fri Nov 10 2000 - 21:20:45 MST