[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to run compiled programs?



On Tue, 16 Mar 1999, Rick Hunter wrote:

   i can't seem to run the programs i compiled
   ie int main(){printf ("Hi, world!\n");}
   
   it compiles but i get the "command not found" error mesg.
   what am i doing wrong?
   
Most likely you are typing the command name incorrectly or you need to
specify the path to the command (since the path to it is not currently
defined).

Most likely you will need to just type './a.out' to specify that the
command is in the current directory:

[dpk@foo:~] gcc test.c 
[dpk@foo:~] ./a.out 
Hi, world!

Dennis
-- 
Dennis Kelly <dpk@egr.msu.edu>
Network Adminstrator
College of Engineering, MSU
353-4844 (phone)
222-5875 (pager)


Reply to: