Compile
- Compile file:
gcc {FileName} -o {outputFile}
-
Compile multi file:
If all the
cppfile is in the same folder, use:gcc *.cpp -o {outputFile}If they are not under the same folder, try:
gcc {FileName1} {FileName2} ... {FileNameN} -o {outputFile}Or writing a
makefileis also a good choice. Guidance