Thread: [Compile Warning] warning: no newline at end of file

1. [Compile Warning] warning: no newline at end of file

Hello,

I got a warning in .hrh file.
The warning is "no newline at end of file".

Thank you.

2. Re: [Compile Warning] warning: no newline at end of file

U only just enter after end of file then after u complie ur application, I hope u will not found any such kind of warning...

3. Re: [Compile Warning] warning: no newline at end of file

Hello,

I use Carbide C++ Express 1.1 and S60 3rd Edition SDK MR.
I got another warning in the following
C://Symbian//9.1//S60_3rd_MR//epoc32//include/eikmenup.h warning: enumeral mismatch in conditional expression: `TFalse' vs `TTrue'
enumeral mismatch in conditional expression: `TFalse' vs `TTrue'[C://Symbian//9.1//S60_3rd_MR//epoc32//include/eikmenup.h]

Thank you

5. Re: [Compile Warning] warning: no newline at end of file

Hello,

the waring is fixed.

There are another strange warning in my program.
(045) the following label is used but has not been declared: R_AVKON_LIST_HEADING_PANE[C:\\Symbian\\9.1\\S60_3rd_MR\\epoc32\\include\\avkon.rh]
(045) the following label is used but has not been declared: R_AVKON_SOFTKEYS_OK_CANCEL[C:\\Symbian\\9.1\\S60_3rd_MR\\epoc32\\include\\avkon.rh]
(045) the following label is used but has not been declared: R_AVKON_SOFTKEYS_OK_CANCEL[C:\\Symbian\\9.1\\S60_3rd_MR\\epoc32\\include\\avkon.rh]
(045) the following label is used but has not been declared: R_AKN_SELECTION_LIST_DIALOG[C:\\Symbian\\9.1\\S60_3rd_MR\\epoc32\\include\\avkon.rh]

I checked my program. There were no such resource used in the code.

Thank you.

6. Re: [Compile Warning] warning: no newline at end of file

Originally Posted by SymNLeaner
Hello,

the waring is fixed.

There are another strange warning in my program.
(045) the following label is used but has not been declared: R_AVKON_LIST_HEADING_PANE[C:\\Symbian\\9.1\\S60_3rd_MR\\epoc32\\include\\avkon.rh]
(045) the following label is used but has not been declared: R_AVKON_SOFTKEYS_OK_CANCEL[C:\\Symbian\\9.1\\S60_3rd_MR\\epoc32\\include\\avkon.rh]
(045) the following label is used but has not been declared: R_AVKON_SOFTKEYS_OK_CANCEL[C:\\Symbian\\9.1\\S60_3rd_MR\\epoc32\\include\\avkon.rh]
(045) the following label is used but has not been declared: R_AKN_SELECTION_LIST_DIALOG[C:\\Symbian\\9.1\\S60_3rd_MR\\epoc32\\include\\avkon.rh]

I checked my program. There were no such resource used in the code.

Thank you.
Basically those labels are declared on avkon.rsg file, which you can find from epoc32\include folder. But that file is not included in avkon.rh, and you've included this file in your RSS file that's the reason why you are getting that warning message. You may either ignore this warnings.

7. Re: [Compile Warning] warning: no newline at end of file

Hello,

I got it now.