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

Re: c programming in Linux



This is a multi-part message in MIME format.

- ------=_NextPart_000_0063_01BEBC93.C12081A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

type

./a.out =20

to execute the program


  ----- Original Message -----=20
  From: Kunal Shah=20
  To: Linux=20
  Sent: Tuesday, June 22, 1999 9:08 AM
  Subject: c programming in Linux


  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=20
  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.aout not found not such file or =
directory
   like it is not recognizing that command.
  is there any other  metode to run c programs?
  Kunal

- ------=_NextPart_000_0063_01BEBC93.C12081A0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>type</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>./a.out&nbsp; </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>to execute the program</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A href=3D"mailto:kvshah@xxxxxxxxxx"; title=3Dkvshah@xxxxxxxxxx>Kunal =
Shah</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  href=3D"mailto:linux-india@xxxxxxxxx"; =
title=3Dlinux-india@xxxxxxxxx>Linux</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, June 22, 1999 =
9:08=20
AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> c programming in =
Linux</DIV>
  <DIV><BR></DIV>
  <DIV><FONT color=3D#000000 size=3D2>Hi all</FONT></DIV>
  <DIV><FONT color=3D#000000 size=3D2>I have a book of stephen prata =
which is&nbsp;=20
  advanced unix - a programmers guide.</FONT></DIV>
  <DIV><FONT color=3D#000000 size=3D2>I am trying to learn c from =
it.</FONT></DIV>
  <DIV><FONT color=3D#000000 size=3D2></FONT><FONT color=3D#000000 =
size=3D2>When i=20
  write&nbsp; a simple program "to print hello world" and issue a =
command=20
  </FONT></DIV>
  <DIV><FONT color=3D#000000 size=3D2>cc kunal.c no error is shown by =
systems and=20
  next command prompt appears.</FONT></DIV>
  <DIV><FONT color=3D#000000 size=3D2></FONT><FONT size=3D2>But when i =
try to run this=20
  program by issuing command a.out nothing is happening and system =
prompts bash=20
  : a.aout not found not such file or directory</FONT></DIV>
  <DIV><FONT color=3D#000000 size=3D2>&nbsp;like it is not recognizing =
that=20
  command.</FONT></DIV>
  <DIV><FONT color=3D#000000 size=3D2>is there any other&nbsp; metode to =
run c=20
  programs?</FONT></DIV>
  <DIV><FONT color=3D#000000 =
size=3D2>Kunal</FONT></DIV></BLOCKQUOTE></BODY></HTML>

- ------=_NextPart_000_0063_01BEBC93.C12081A0--

- --------------------------------------------------------------------
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

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