esp-hal icon indicating copy to clipboard operation
esp-hal copied to clipboard

multiple definition of malloc, calloc, and free when used together with other crates providing them

Open noahbliss opened this issue 11 months ago • 3 comments

Hey! I use another crate which wraps some C code. That crate and esp-wifi both seem to rely on the C functions listed in the title. When both crates are used, the compiler dies of an aneurysm. Any ideas on possible solutions? Could this be added as a feature perhaps where a user can bring their own implementations of these functions? I'll request the same behavior from the other crate's maintainer.

Very simply, using the a121-rs crate and esp-wifi together doesn't work.

noahbliss avatar Mar 12 '24 04:03 noahbliss