Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5164

SDK • /pico/stdlib.h not found

$
0
0
Hi,

I have been playing around with the spi_master example, making some modifications (as one does). I have created a couple of custom functions, which work fine when in the spi_master.c file (main). I plan to use these in my own project shortly. I moved the custom functions and structures out of the main file and into new .h and .c files. When I attempt to include "/pico/stdlib.h" into the new .c and .h files (to access uint8_t, etc.) "pico/stdlib.h" is not found by the compiler.

I am not using additional subdirectories or anything like that, the path is essentially the same. stdlib.h CAN be found in the main file (spi_master.c), but cannot be found in the new .h or .c file. I have searched this forum and the general web and can't figure this one out.

I am using the Windows 11 / VSCode installed using official sources.
I was able to edit CMakelists.txt sufficiently for the system to find my new library, but I am falling flat on this #include problem.

Thanks in advance for your help

Statistics: Posted by arlenn — Tue Nov 12, 2024 5:15 am



Viewing all articles
Browse latest Browse all 5164

Trending Articles