Linking against RTOS SDK.

User avatar
dexterash
Posts: 7
Joined: Fri Nov 07, 2014 7:10 pm
Location: Online
Contact:

Linking against RTOS SDK.

Postby dexterash » Thu Dec 11, 2014 11:04 am

Good day

If we don't add main lib to linking we get:
warning: cannot find entry symbol call_user_start; defaulting to 0000000040100000

If we add main lib to linking:
we get some conflicts like
In function `pvPortMalloc': (.text+0x18): multiple definition of `malloc'
In function `vPortFree': (.text+0xec): multiple definition of `free'
or more undefined references to `_sbrk_r' follow

Any help?

Thank you!

jackon
Posts: 28
Joined: Thu Oct 23, 2014 9:05 am

Re: Linking against RTOS SDK.

Postby jackon » Fri Dec 19, 2014 7:42 pm

Do you add -lc in your Makefile?
If yes, please delete it, don't use libc.a in RTOS SDK.
We have ported some frequently-used libc apis in SDK, you can refer to include/espressif/esp_libc.h.

User avatar
dexterash
Posts: 7
Joined: Fri Nov 07, 2014 7:10 pm
Location: Online
Contact:

Re: Linking against RTOS SDK.

Postby dexterash » Mon Dec 22, 2014 5:35 am

Thank you, my bad! Removed linking against libC and now it's ok.

Who is online

Users browsing this forum: No registered users and 213 guests