Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 May 2000 08:56:45 +1000
From:      Danny <dannyh@idx.com.au>
To:        XF <gin@dds.nl>, Alex Kwan <freebsd-questions@FreeBSD.ORG>
Subject:   Re: A basic question about C programming
Message-ID:  <00051708571901.00360@freebsd.freebsd.org>
References:  <20000514131017.A801@dds.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Thats easy make sure you have chmod 755 cprogram
and use ./cprogram


On Sun, 14 May 2000, XF wrote:
> On Sun, May 14, 2000 at 08:00:23PM +0800, Alex Kwan wrote:
> > Hi!
> > 
> > I am learning C programming with FreeBSD, I write a simple C program
> > (filename: inform.c) as follow:
> > #include <stdio.h>
> > main()
> > {
> >     printf("A .c is used to end a C program filename.\n");
> > }
> > 
> > I compile it with "cc -o inform inform.c",  when the compilation is
> > finished,
> > I have got the file "inform", but it can't execute and got the error
> > "inform: Command not found", What is the problem of me?
> > 
> > Thanks
> > 
> > 
> 
> try ./inform
> 
> -- 
> Error: Keyboard not attached. Press F1 to continue.
> 
> 
> 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?00051708571901.00360>