Issue
In order to compile a program using the terminal in Fedora Linux
, we do the following:
> g++ hello.cpp
What should I do in order to run the program?
Thanks.
Solution
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
Answered By - P.P