Hello everyone,
How can I use rand() and srand() functions in NCS?
I have already #include <stdlib.h>, but I got this issue:
undefined reference to `srand'
Thanks,
Hello everyone,
How can I use rand() and srand() functions in NCS?
I have already #include <stdlib.h>, but I got this issue:
undefined reference to `srand'
Thanks,
Hi
By default Zephyr only includes a very limited set of the standard C libraries, as detailed here.
If you set CONFIG_NEWLIB_LIBC=y in your project configuration you should get access to the full version of the standard C libraries.
Best regards
Torbjørn
Hi
By default Zephyr only includes a very limited set of the standard C libraries, as detailed here.
If you set CONFIG_NEWLIB_LIBC=y in your project configuration you should get access to the full version of the standard C libraries.
Best regards
Torbjørn
Thank you very much, it worked for me.