You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need the sqrt() function from math.h, so I added #include <math.h> to my source and LIBS=m to my Makefile before include <path_to_esp-open-rtos>/common.mk.
compiler output:
CC /home/brian/Desktop/wifi-pwm/user_main.c
AR build/program.a
LD build/wifi-pwm.out
/opt/Espressif/esp-open-rtos/ld/program.ld:21: undefined symbol `malloc' referenced in expression
collect2: error: ld returned 1 exit status
/opt/Espressif/esp-open-rtos/common.mk:212: recipe for target 'build/wifi-pwm.out' failed
make: *** [build/wifi-pwm.out] Error 1
I have since rebuilt the entire toolchain from scratch, making sure to build esp-open-sdk with make toolchain esptool libhal STANDALONE=n as suggested by issue #79, and the problem persists. Are there any other libraries or flags I'm missing?
The text was updated successfully, but these errors were encountered:
That did it, thank you! I've issued #377 to make it easier for future users. It seems to me there should be a way to simply add libraries per-project without concern for parameters.mk.
I need the
sqrt()
function from math.h, so I added#include <math.h>
to my source andLIBS=m
to my Makefile beforeinclude <path_to_esp-open-rtos>/common.mk
.compiler output:
Makefile:
I have since rebuilt the entire toolchain from scratch, making sure to build esp-open-sdk with
make toolchain esptool libhal STANDALONE=n
as suggested by issue #79, and the problem persists. Are there any other libraries or flags I'm missing?The text was updated successfully, but these errors were encountered: