Skip to content
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

Release version issue snprintf #3614

Open
vit1251 opened this issue Oct 15, 2023 · 2 comments
Open

Release version issue snprintf #3614

vit1251 opened this issue Oct 15, 2023 · 2 comments

Comments

@vit1251
Copy link

vit1251 commented Oct 15, 2023

Expected behavior

DEPEND: CC app/libc/snprintf.c
snprintf.c:41:35: fatal error: c99-snprintf/snprintf.c: No such file or directory
#include "c99-snprintf/snprintf.c"
^
compilation terminated.
CC app/libc/snprintf.c
snprintf.c:41:35: fatal error: c99-snprintf/snprintf.c: No such file or directory
#include "c99-snprintf/snprintf.c"
^
compilation terminated.

@th3worst4
Copy link

I've cloned the snprintf.c file from this repository https://github.com/weiss/c99-snprintf/blob/master/snprintf.c at the required folder. It solved the "No such file or directory" but now I'm having linking errors

/home/caioc/nodemcu-firmware/sdk/esp_iot_sdk_v3.0-e4434aa/lib/libc.a(lib_a-svfprintf.o):(.literal+0x10): undefined reference to `_malloc_r'

@vit1251
Copy link
Author

vit1251 commented Jan 23, 2025

Look like you get snprintf implementation work with heap. I acutally does not know ESP NO-OS is provide malloc, free on heap inside. It may be need to implement or use sprintf without heap allocation.

In any case look like 2 years question stil not answered and I think project dead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants