Nguyễn Tâm Hảo
New member
How do I compile a GCC program?
Answer
Steps
Answer
Steps
- Open up a terminal window on your Unix system.
- Type gcc –version and press ↵ Enter . This should return the version number of the C compiler.
- Navigate to the directory where your source code is saved.
- Type gcc main.c –o HelloWorld .
- Run your newly-compiled program.