Date: Wed, 9 Oct 1996 09:47:08 -0500 (EST) From: "John S. Dyson" <toor@dyson.iquest.net> To: bruce_perryman@ibi.com (bruce perryman) Cc: questions@freebsd.org Subject: Re: your mail Message-ID: <199610091447.JAA06780@dyson.iquest.net> In-Reply-To: <9609098448.AA844881340@tcpgate.ibi.com> from "bruce perryman" at Oct 9, 96 10:13:09 am
next in thread | previous in thread | raw e-mail | index | archive | help
> > Hey out there! Ready for a dumb question? > > I compile a simple c program with cc and get the resulting a.out or > a.o. But I can't run it! What's the problem? > Your path most likely does not contain ".". I suggest trying to run your program like: ./a.out Note that a.o won't run. You want to compile your program like: cc -O -g -o foo foo.c This will optimize your program, make it so it can be debugged easily, and also produce a binary called "foo". You would run it using: ./foo John
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610091447.JAA06780>