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

#endif for this directive is missing error in .c file

Hi,

I am trying to compile a c file and running into the following error

OBJECT ATSGCHNAAAlibs/qcom_htc.o
"../../wlan/oem/ath/targaddrs_rexos.h", line 44: Warning: #1295-D: Deprecated declaration config_exit - give arg types void config_exit(); ^
"..\..\wlan\oem\qcom_htc.c", line 8000: Warning: #1-D: last line of file ends without a newline QSR_MSG_HIGH( 3772747615ll, "WLAN FC:WLAN registered with FC", 0, 0, 0);//auto-gen, ^
"..\..\wlan\oem\qcom_htc.c", line 7967: Error: #37: the #endif for this directive is missing
..\..\wlan\oem\qcom_htc.c: 2 warnings, 1 error
make[1]: *** [ATSGCHNAAAlibs/qcom_htc.o] Error 1
make: *** [libs] Error 2

Can someone pls help what went wrong?

Thanks in advance

-Gopi

Parents
  • Already did that,It's definetely not because of having more #ifdef's than #endifs or vice-versa.

    I see the exact number of #ifdef's and #endif's

    the line 8000 where it is complaning looks like

    QSR_MSG_HIGH( 3772747615ll, "WLAN FC:WLAN registered with FC", 0, 0, 0);//auto-gen, to change remove 'QSR_' and first param

    Does the comment at the end is blocking from the #endif being detected?

    Thanks

Reply
  • Already did that,It's definetely not because of having more #ifdef's than #endifs or vice-versa.

    I see the exact number of #ifdef's and #endif's

    the line 8000 where it is complaning looks like

    QSR_MSG_HIGH( 3772747615ll, "WLAN FC:WLAN registered with FC", 0, 0, 0);//auto-gen, to change remove 'QSR_' and first param

    Does the comment at the end is blocking from the #endif being detected?

    Thanks

Children