Tutorial by Examples

For programs with a single source file, using gcc is simple. /* File name is hello_world.c */ #include <stdio.h> int main(void) { int i; printf("Hello world!\n"); } To compile the file hello_world.c from the command line: gcc hello_world.c gcc will then compil...
When referring to gcc's documentation, you should know which version of gcc you are running. The GCC project has a manual for each version of gcc which includes features that are implemented in that version. Use the '-v' option to determine the version of gcc you are running. gcc -v Example Ou...

Page 1 of 1