compile cpp file to exe code example Example: c++ compile to exe gcc sourcefile_name.c -o outputfile.exe