SDK RTOS 1.4.x (latest patch): undefined reference to memcpy & memset

ecl66
Posts: 4
Joined: Wed Aug 19, 2015 4:14 pm

SDK RTOS 1.4.x (latest patch): undefined reference to memcpy & memset

Postby ecl66 » Tue Aug 30, 2016 6:54 pm

Greetings,

I am using the latest RTOS SDK (1.4 + patch 1.4.2) and get many undefined references to memcpy, memset, strcpy...
Am I missing some library?

Here is my Makefile LINKFLAGS:
LINKFLAGS_eagle.app.v6 = \
-L$(SDK_PATH)/lib \
-Wl,--gc-sections \
-nostdlib \
-T$(LD_FILE) \
-Wl,--no-check-sections \
-u call_user_start \
-Wl,-static \
-Wl,--start-group \
-lminic \
-lgcc \
-lhal \
-lphy \
-lpp \
-lnet80211 \
-lwpa \
-lcrypto \
-lmain \
-lfreertos \
-llwip \
-lcirom \
-lnopoll \
-lssl \
-lwpa \
$(DEP_LIBS_eagle.app.v6) \
-Wl,--end-group

Thanks and best regards,
Emmanuel

pratik

Re: SDK RTOS 1.4.x (latest patch): undefined reference to memcpy & memset

Postby pratik » Fri Sep 02, 2016 9:53 am

This seems to work for the memory allocation functions:

LINKFLAGS_eagle.app.v6 = \
-L$(SDK_PATH)/lib \
-Wl,--gc-sections \
-nostdlib \
-T$(LD_FILE) \
-Wl,--no-check-sections \
-u call_user_start \
-Wl,-static \
-Wl,--start-group \
-lcirom \
-lcrypto \
-lespconn \
-lespnow \
-lfreertos \
-lgcc \
-lhal \
-ljson \
-llwip \
-lmain \
-lmesh \
-lmirom \
-lnet80211 \
-lnopoll \
-lphy \
-lpp \
-lpwm \
-lsmartconfig \
-lspiffs \
-lssl \
-lwpa \
-lwps \
$(DEP_LIBS_eagle.app.v6) \
-Wl,--end-group


Let me know if it solved your problem!

Who is online

Users browsing this forum: No registered users and 295 guests