To link two c programs using gcc, enter this line in the terminal:
gcc <name_of_program> <name_of_program>
In the case of the program it is:
gcc ./main.c ./header/program.c
To run the file, run the line/s below:
Windows:
.\a.exe
Linux:
./a.out
| Name | Name | Last commit date | ||
|---|---|---|---|---|
To link two c programs using gcc, enter this line in the terminal:
gcc <name_of_program> <name_of_program>
In the case of the program it is:
gcc ./main.c ./header/program.c
To run the file, run the line/s below:
Windows:
.\a.exe
Linux:
./a.out