Hello Friends, can anybody explain me what is the error in this procedure of compiling and executing a c++ program file.
If you haven't specified the name of the executable to produce with
So either do:
If you type
then it will create a file named a.out which will be the file you want to use in order to run the program.
But if you wanna make a file with the name you want then -
g++ -o desiredname progfile.cpp
now this will create a file with whatever name you give