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

How can I use math.h in Segger Embedded Studio?

Hi, 

I want to use the math.h for my nRF9160 project, but when I include it, it doesn't find it.
I am a beginner and I wanted to ask how do I include libarys proparly in Segger Embedded Studio?

I already tried to copy a math.h file from a other project to the \ncs\zephyr\lib\libc\minimal\include directory, but then it didn't found the sqrt function I need!

Thanks for your answers and your help!

Parents Reply
  • Hi.

    Bergmann said:
    it didn't make a difference

     If you are using Segger Embedded Studio, you must re-load the project for changes in prj.conf to take effect.

    If you only want to change the current build, you can select Project -> Configure nRF Connect SDK Project to open a configuration tool.

    If you build from the command line, you can use ninja menuconfig (inside the build folder) to achieve the same.

    Best regards,

    Didrik

Children
No Data
Related