(1)Warning: end of file in comment; newline inserted (2)Warning: end of file not at end of a line; newline inserted (3)warning: no newline at end of file
解决:
Step 1: place the cursor at the very end of your program file.
Step 2: press Enter (or the Return key) to create a new blank line at the end of your file. Step 3: press the Home key to move the cursor to the very beginning of the last line.
Step 4: press and hold the Delete key, to delete the whitespace characters that are usually auto-inserted by the Nios II IDE editor whenever you create a blank line. 即每个文件的最后一行一定要是空行,不包含空格和任何字符。虽然这种警告不会影响编译和运行,但我们最好遵循编程规范,努力消除所有的警告。
|