how to run compiled C file.
Hi there.
im very very noob at linux/unix and all shell stuff. I just bought a shell accout to study C programming (-: I wrote 'hello world' example. Compiled it like so: gcc test.c I got a.out (dont know what it is) And my question would be: how to run it ? (-: I just wanna see 'Hello world' ... :/ |
the a.out is the executable
simply type Code:
./a.out Code:
gcc -o helloworld helloworld.c -o - the next argument is the Object file (the executable) helloworld - the object for reasons stated above helloworld.c - the source |
Hi,
If your working directory is the same where the a.out file is, then enter the following at command prompt. ./a.out |
All times are GMT -5. The time now is 03:11 PM. |