Quote:
Originally Posted by SolitudeSensus
I tried to compile c++ source. By doing this:
g++ Example_1.cpp -o Example_1
It says that:
Example_1.cpp:9:2: warning: no newline at end of file
What does it mean?
My executable file runs even there is error but only in terminal.
|
Warnings are less severe than errors and don't usually prevent the code from being compiled. It means what it says - that you don't have a new line at the end of your source file. Perhaps it's set out in the standard that there should be a new line at the end of all source files, but I don't know.
Quote:
Is terminal only the option to execute it?
|
I assume the answer to this is yes, if all your program uses for "communication" is stdout, stdin and stderr. If you had some kind of GUI, perhaps then you'd be able to click on it and run it.