This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

error

source.c(60): warning: #1-D: last line of file ends without a newline
source.c(60): error: #65: expected a ";"
what this error stands for .. how to remove it please help :)

Parents
  • So what would _you_ think would be reasonable actions to counter these messages?

    source.c(60): warning: #1-D: last line of file ends without a newline
    


    What would be a good way to get the compiler to stop warning that the file ends without a newline?

    source.c(60): error: #65: expected a ";"
    


    So what special meaning does ';' have in the C language?

    Are you fulfilling the expectations of the compiler? What would the reason be for the compiler to expect a ';'? Would you say the compiler is unreasonable in expecting a ';'?

    Did you look at the code, and consider if the code is following the language standards? The advantage with line numbers in the error messages is that they are intended to let you know where to start looking in _your_ source code.

Reply
  • So what would _you_ think would be reasonable actions to counter these messages?

    source.c(60): warning: #1-D: last line of file ends without a newline
    


    What would be a good way to get the compiler to stop warning that the file ends without a newline?

    source.c(60): error: #65: expected a ";"
    


    So what special meaning does ';' have in the C language?

    Are you fulfilling the expectations of the compiler? What would the reason be for the compiler to expect a ';'? Would you say the compiler is unreasonable in expecting a ';'?

    Did you look at the code, and consider if the code is following the language standards? The advantage with line numbers in the error messages is that they are intended to let you know where to start looking in _your_ source code.

Children
No data