How to use time.h and math.h in nrf connect sdk?

1)I want to use "mktime" and "localtime" in my nrf52840 code ,how do i include time.h file?


2)I am using math.h file , in prj.conf i define "CONFIG_NEWLIB_LIBC=y"  but I continuously  get error as below ,how do i resolve it?

error:

/usr/include/math.h:415:33: error: '_Float128' is not supported on this target
415 | # define _Mdouble_ _Float128
Parents
  • This is exact same query you have started in your original post.

    I have responded to that that I can add time.h and math.h without any issue and use their functions. 

    I have explained all steps in detail that how I did that starting from the name of the project and noting smaller changes like the project configs etc.

    1) Can you replicate the steps which I have mentioned and see the output?

    2) Kindly let let me know all the steps in detail to replicate the problem you are having

    BR

Reply
  • This is exact same query you have started in your original post.

    I have responded to that that I can add time.h and math.h without any issue and use their functions. 

    I have explained all steps in detail that how I did that starting from the name of the project and noting smaller changes like the project configs etc.

    1) Can you replicate the steps which I have mentioned and see the output?

    2) Kindly let let me know all the steps in detail to replicate the problem you are having

    BR

Children
No Data
Related