It’ll generate a file “a.out” which you can execute as: ./a.out
Alternatively you can specify the name for your executable using -o
:
g++ yourfile.cpp -o myexe
3
solved running a C++ program in Fedora Linux
It’ll generate a file “a.out” which you can execute as: ./a.out
Alternatively you can specify the name for your executable using -o
:
g++ yourfile.cpp -o myexe
3
solved running a C++ program in Fedora Linux