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
  • "../../wlan/oem/ath/targaddrs_rexos.h", line 44:
    Warning: #1295-D: Deprecated declaration config_exit - give arg types void config_exit();

    The above warning can be ignored.

    I am more worried about the below error

    "..\..\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

    Why is the #endif missing even though the last of the file ends with a new line?

    Thanks

Reply
  • "../../wlan/oem/ath/targaddrs_rexos.h", line 44:
    Warning: #1295-D: Deprecated declaration config_exit - give arg types void config_exit();

    The above warning can be ignored.

    I am more worried about the below error

    "..\..\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

    Why is the #endif missing even though the last of the file ends with a new line?

    Thanks

Children