Date: Sun, 14 May 2000 10:09:45 -0400 From: "Alan L. Clarke" <toadie@eticomm.net> To: Alex Kwan <alexkwan@pacific.net.hk> Cc: XF <gin@dds.nl>, freebsd-questions@FreeBSD.ORG Subject: Re: A basic question about C programming (sloved) Message-ID: <391EB3A8.36442A53@eticomm.net> References: <000701bfbd9b$fd945300$591e40ca@alexkwan> <20000514131017.A801@dds.nl> <001701bfbd9d$eae8be60$591e40ca@alexkwan>
next in thread | previous in thread | raw e-mail | index | archive | help
The smart thing to do is to change your .profile . Change your PATH variable to include your present working directory or any other directories that you will be using to execute code!!!!!!!!!!!!!!!!!! Alan Alex Kwan wrote: > Hi! > > Thank you! it is ok now, but why? > > Alex > > > > 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 > > > > 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?391EB3A8.36442A53>