ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am trying to add a new line at the end of my main.cpp file. This is a result of a compiler error that says i do not have a new line at the end of the file. What code do I add to my file to make it complile?
it's not a compiler error but a warning (at least for me). gcc seems to like having a newline at the end of source files but it doesn't affect the compilation. just open up your source file in an editor and set the cursor to the end of the file and press the enter key. that should get rid of that warning.