On Thu, 16 Oct 1997, Dean C. Sullinger wrote: > In the first place, thank you everyone for all > the help. Sorry if I ask so many questions. > > I have written a basic C program just to try > out gcc, the source code is: > > #include <stdio.h> > > main() > { > printf("This is a test\n"); > } > > When I compiled it I ran: > > gcc test.c -o test > > When I executed the application, it ran > yet I did not get the "This is a test" > message to show up on my screen. I have > read the doc's on gcc. Am I missing > something? I even tried using cpp and > I get the same results.
You probably got the wrong "test" program. There's one built into bash and there's also an (equivalent) one in in /usr/bin/test. You need to type ./test to be sure to run the "test" program in your current directory. You can use bash's "type" command to see what's happening: $ type test test is a shell builtin Hope this helps, Andy Dougherty [EMAIL PROTECTED] Dept. of Physics Lafayette College, Easton PA 18042 -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .