nRF connect SDK v2.0.0 direction fiding RX example cannot found stdio.h

HI,

i use the nRF connect SDK v2.0.0 direction fiding RX example in WIN10 VScode with nRF52833dk.

i want  write something like 'fopen' , but the header 'stdio.h'  cannot found.

i have comfirmed it is exist.

error task

the same path header files, but they can use.

when i open the stdio.h , it has error 'toolchain.h'

i found the file in 'llvm-vs-code-extensions.vscode-clangd'. 

path  :C:\Users\user\AppData\Roaming\Code\User\globalStorage\llvm-vs-code-extensions.vscode-clangd\install\15.0.3\clangd_15.0.3\lib\clang\15.0.3\include

stdio.h error task

how can i fix it?  thanks.

Parents
  • Hi

    Can you check out the \zephyr\samples\application_development\external_lib sample project, and check the CMakeLists.txt file to see how you can add external libraries with the add_library function as you need to do that as well in addition to add the header files. What is the first error you see when trying to build this application? Usually the topmost one will give you an indication of what the root issue is.

    Best regards,

    Simon

Reply
  • Hi

    Can you check out the \zephyr\samples\application_development\external_lib sample project, and check the CMakeLists.txt file to see how you can add external libraries with the add_library function as you need to do that as well in addition to add the header files. What is the first error you see when trying to build this application? Usually the topmost one will give you an indication of what the root issue is.

    Best regards,

    Simon

Children
No Data
Related