When using novice MDK, warning: Last line of file ends without a newline solution __ software

Source: Internet
Author: User
Tags delete key

When Keil software compiles, there is always a problem:
Warning: #1-D: lastline of file ends without a newline. As shown in the following illustration:


Baidu under the outcome of the method is

Move the cursor to the last line of code that prompts the alarm (the line that has the code) and then hold down the DEL key until you are sure there is no return line, and the last carriage return or more.
However, my compiler will still report the same error, I do not know whether the reason for my Keil or computer settings.

The solution is to press a delete key at the top of the method. Be sure to ensure that the above method returns, the cursor is in the beginning position, not the blank one.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.