C programming
Mikkel L. Ellertson
mikkel at infinity-ltd.com
Tue Aug 8 14:47:42 UTC 2006
jam wrote:
> Here's an example:
>
> $ gcc -o myprog myprog.c
> $ myprog
>
> the directories are change according to where i save the file. but the program isn't running..
>
The default path does NOT include the current directory, so if you
want to run myprog, you have to ether put it in a directory on the
path, or give the path to myprog. For testing, entering ./myprog
instead of just myprog works well. If you want to be able to access
the program directly from the command line, then put it in $HOME/bin
or /usr/local/bin.
Mikkel
--
Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!
More information about the fedora-list
mailing list