LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   what commands to type to run a c program (https://www.linuxquestions.org/questions/suse-opensuse-60/what-commands-to-type-to-run-a-c-program-622916/)

vitalstrike82 02-21-2008 07:35 PM

what commands to type to run a c program
 
Hi,
i have written a c program and name it test.c. what do i need to type in the terminal to compile and run the text.c ?

thanks

jtshaw 02-21-2008 07:48 PM

To compile:
gcc -o test test.c

To run:
./test

vitalstrike82 02-21-2008 08:21 PM

Thanks for the info...

Quote:

Originally Posted by jtshaw (Post 3065642)
To compile:
gcc -o test test.c

To run:
./test



All times are GMT -5. The time now is 05:42 AM.