Hello,
I am developing an application that requires use of some of the traditional C "stdio.h" functionality. My current development setup is the nRF5340 DK running Zephyr OS v2.7.99. I am attempting to use the dr_libs libraries, particularly dr_wav at the moment, for decoding audio files. These libraries depend on standard C stdio.h, and I am unsure how to properly include this and other standard C headers in my project. I currently have dr_wav.h placed in my app src right next to src/main.c. I'm also unsure the best way to keep external sources separate from my own in the project organization.
So far I have tried adding the include path (from the toolchain) to my project by using "include_directories()" in my CMakeLists.txt:
And VS Code will now recognize that there are two stdio.h available, one from zephyr and one from standard C:
But still, when trying to call dr_wav_init_file() in main.c, I get the following build errors:
My question is then, what is the appropriate way to enable use of some of the standard C libraries in my project and remove these dependency issues? Any guidance is greatly appreciated, and please let me know if I can provide any more information to help.