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

General • Re: How can i put a file .h in another section of memory? rp2040

$
0
0
It's been a looooong time since I used C on anything so my understanding could trivially be wrong.

Header files (.h) exist so that you don't need to pull the source of the library into your program. The compiler and/or linker do that for you.

On a full fat OS you can do that in a way that uses system wide shared libraries at run time but given there is no OS on the Pico I'd expect all libraries to be statically linked into the output binary.

Plus, the pico doesn't really have a filesystem to store them in.

So, unless cmake can do it, you're probably out of luck.

Statistics: Posted by thagrol — Wed May 21, 2025 9:31 pm



Viewing all articles
Browse latest Browse all 8015

Trending Articles