Re: C programming

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux