Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#include <Radiolib/SX1262.h> is available to use less space than the hole library? #1097

Closed
richonguzman opened this issue May 13, 2024 · 1 comment

Comments

@richonguzman
Copy link

I'm running out of space in the ESP32 board and wanted to ask (as I could not find any valid answer about it) if the library could be imported/included by only a part of it.

in python you can:

"from radiolib import sx1262" or something like that...

can you do :

#include <Radiolib/SX1262.h>

or something like that to avoid importing the hole library ?

@jgromes
Copy link
Owner

jgromes commented May 14, 2024

or something like that to avoid importing the hole library ?

That's not how a compiled language works. All the unused classes will not be present in the final library. If a symbol is not being used by anything, it will not be linked and hence it will not be in your output file. Feel free to explore the compiled ELF file with tools like objdump.

Also, not really an issue - converting to a discussion instead.

Repository owner locked and limited conversation to collaborators May 14, 2024
@jgromes jgromes converted this issue into discussion #1098 May 14, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants