[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: c programming in Linux



NO!
it is because ur "." directory is not in the path. This can be solved by
inserting a ":." at the end in the PATH variable defined in /etc/profile

VaibhaV Sharma
webmaster@xxxxxxxxx
- ----- Original Message -----
From: Kunal Shah <kvshah@xxxxxxxxxx>
To: Linux <linux-india@xxxxxxxxx>
Sent: Wednesday, June 23, 1999 11:17 AM
Subject: Re: c programming in Linux


> it works, I should give command ./a.out instead of a.out because my /
> directory is not in path .
> Well
> thanks
> Kunal
> -----Original Message-----
> From: PRASAD K. SUNDAR <prasad.sunder@xxxxxxxxxxxxxxxx>
> To: Linux <linux-india@xxxxxxxxx>
> Date: Wednesday, June 23, 1999 11:03 AM
> Subject: Re: c programming in Linux
>
>
> >does it give an error saying a.out:not found or some thing..otherwise u
> >must be using some system call that is awatung some connection from the
> >client..can u just give me the details of the program?
> >Prasad.
> >
> >On Tue, 22 Jun 1999, Kunal Shah wrote:
> >
> >> Hi all
> >> I have a book of stephen prata which is  advanced Unix - a programmers
> guide.
> >> I am trying to learn c from it.
> >> When I write  a simple program "to print hello world" and issue a
command
> >> cc Kunal.c no error is shown by systems and next command prompt
appears.
> >> But when I try to run this program by issuing command a.out nothing is
> happening and system prompts bash : a.out not found not such file or
> directory
> >>  like it is not recognizing that command.
> >> is there any other  metode to run c programs?
> >> Kunal
> >>
> >
> >--------------------------------------------------------------------
> >For more information on Linux in India visit http://www.linux-india.org/
> >Linux India is NOT a forum for Microsoft/India/Pakistan/US/UK bashing.
> >Flame baits will not be tolerated.  If you can appreciate satire read
> >http://www.templetons.com/brad/emily.html
>
>
> --------------------------------------------------------------------
> For more information on Linux in India visit http://www.linux-india.org/
> Linux India is NOT a forum for Microsoft/India/Pakistan/US/UK bashing.
> Flame baits will not be tolerated.  If you can appreciate satire read
> http://www.templetons.com/brad/emily.html
>

- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
Linux India is NOT a forum for Microsoft/India/Pakistan/US/UK bashing.
Flame baits will not be tolerated.  If you can appreciate satire read
http://www.templetons.com/brad/emily.html

------------------------------