Date: Sun, 23 Mar 1997 15:04:52 -0800 (PST) From: Howard Lew <hlew@www2.shoppersnet.com> To: Mark Wefer <mwefer@primenet.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Please help w/ gcc Message-ID: <Pine.BSF.3.91.970323150316.20563A-100000@www2.shoppersnet.com> In-Reply-To: <1.5.4.32.19970323183847.0066c668@pop.primenet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 23 Mar 1997, Mark Wefer wrote:
> Hello - I've just installed 2.1.7 w/ the novice / developers setup
> and am having a little tbl getting gcc to work. (???)
>
> My source file - test.c - is:
>
> #include <stdio.h>
> main()
> {
> printf("FreeBSD Rules......\n");
> return 0;
> }
>
> When I run the command: "gcc -o test test.c" it seems to complete
> ok, I don't see any errors or anything, and it makes a file called
> "test".
>
> When I try to execute the "test" file it just returns to my prompt.
>
> Could someone please help?????
>
When you run test, it runs another command in another directory.
Type:
shell: {15} which test
/bin/test
Just rename the file to another file name and the problem is gone or type
./test to execute your program in your current directory.
> Thanks, Mark.
>
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970323150316.20563A-100000>
