This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

sd_power_system_off() gives error: implicit declaration of function 'sd_power_system_off'

Hello whenever I am calling sd_power_system_off(), it gives me the following error-  implicit declaration of function 'sd_power_system_off'.

What shall be the optimum solution and in which library is it stored?

Thank you

  • Hello,

    Implicit declaration of function most commonly is the result of calling a function that the compiler has not seen a prototype for yet.
    Its a common C error.

    You need to check the order of which you include and use functions. Normally, this is negated by placing the declarations in the header file, and including the header files in your main project files.

    Have you included nrf_soc.h in your project, and is it included prior to any calls to sd_power_system_off?

    Best regards,
    Karl

Related