Date: Sun, 21 May 2000 14:55:48 -0400 From: "Aden, Ahmed M" <Ahmed.Aden@qwest.com> To: "'Alex Kwan'" <alexkwan@pacific.net.hk> Cc: "'freebsd-questions@freebsd.org'" <freebsd-questions@freebsd.org> Subject: RE: A basic question about C programming Message-ID: <9B6418465506D21192CE00104BC6B62F083BFF33@MCNTX001>
next in thread | raw e-mail | index | archive | help
Perhaps the problem is that inform is not in your path. Do a 'echo $PATH'
to see if the directory inform resides in is being checked before trying to
run the program. If you know inform is not in your path, from the current
directory do a ./inform and it will run as an executable which it assumes to
be in the current directory.
Hope this helps
-----Original Message-----
From: Alex Kwan [mailto:alexkwan@pacific.net.hk]
Sent: Sunday, May 14, 2000 8:00 AM
To: freebsd-questions@FreeBSD.ORG
Subject: A basic question about C programming
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
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?9B6418465506D21192CE00104BC6B62F083BFF33>
