Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Jul 1999 13:37:22 +0800
From:      Rezamys <rezath@tm.net.my>
To:        Mark Ovens <markov@globalnet.co.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: newbie: how to compile & run C program in 3.2Release?
Message-ID:  <3782E792.5EEC096C@tm.net.my>
References:  <3782BC71.C501C08A@tm.net.my> <19990707033149.B254@marder-1>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks Mark. I'll try it.

Mark Ovens wrote:

> On Wed, Jul 07, 1999 at 10:33:21AM +0800, Rezamys wrote:
> > Hi all,
> > This surely sound silly but at least i'm being honest to myself...
> > Anyways, i created a simple program e.g "hello world" in the ee editor
> > and did a complilation like this:
> >
> >      bash$  cc hello.c
> >
> > It gave no error. Fine. When i type:
> >
> >      bash$  hello.c
> >
> > The output tells me that "hello.c command not found"...
> > I heard from a friend that we have to see the ouput (on the screen)
> > "hello world" in your editor and not at your prompt.
> >
>
> The output from ``cc hello.c'', the program, will be called ``a.out''
> and will be in your current directory. Try typing ``./a.out''. You
> need the ``./'' if the current dir is not in your path.
>
> If you want your program to be called something other than a.out,
> use the ``-o'' option when you compile:
>
> cc -o hello hello.c
>
> This will name the program ``hello''
>
> HTH
>
> > In DOS i could see the output displayed on the screen... but this...gee
> > i don't know...
> >
> > Please help.
> >
> >
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> >
>
> --
>       FreeBSD - The Power To Serve http://www.freebsd.org
>       My Webpage http://www.users.globalnet.co.uk/~markov
> _______________________________________________________________
> Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK
> CAD/CAM solutions for Sheetmetal Working Industry
> mailto:markov@globalnet.co.uk              http://www.radan.com
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3782E792.5EEC096C>