From owner-freebsd-questions Sun Mar 23 15:02:31 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA05170 for questions-outgoing; Sun, 23 Mar 1997 15:02:31 -0800 (PST) Received: from www2.shoppersnet.com (shoppersnet.com [204.156.152.112]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA05164 for ; Sun, 23 Mar 1997 15:02:27 -0800 (PST) Received: (from hlew@localhost) by www2.shoppersnet.com (8.8.5/8.8.5) id PAA21249; Sun, 23 Mar 1997 15:04:52 -0800 (PST) Date: Sun, 23 Mar 1997 15:04:52 -0800 (PST) From: Howard Lew To: Mark Wefer cc: freebsd-questions@FreeBSD.ORG Subject: Re: Please help w/ gcc In-Reply-To: <1.5.4.32.19970323183847.0066c668@pop.primenet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 > 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. > >