These are chat archives for SmingHub/Sming

8th
Feb 2019
frankdownunder
@frankdownunder
Feb 08 09:44
I am trying to build with versiion 3 of the SDK, but I get multiple definitions. The samples build OK, but my code doesnt.
Does anyone have a suggestion?
AR out/build/app_app.a
LD out/build/app_0.out
out/build/libmain2.a(mem_manager.o): In function malloc': (.text+0x470): multiple definition ofmalloc'
/opt/Sming/Sming/compiler/lib//libmicroc.a(malloc.o):C:\DEV\ESP8266\esp_microc/malloc/malloc.c:8: first defined here
out/build/libmain2.a(mem_manager.o): In function free': (.text+0x48c): multiple definition offree'
etc. . .
slaff
@slaff
Feb 08 10:06

but my code doesnt.

Open a ticket, paste your LD file, if you use one, when you compile your application do it with make V=1 so that we can see what the linker is doing.

Also make sure to clean your app and to dist-clean Sming before testing.
cd $SMING_HOME
git checkout develop
make dist-clean
cd <your-app>
make V=1
frankdownunder
@frankdownunder
Feb 08 10:09
V=1 doesnt print anything extra for me
slaff
@slaff
Feb 08 10:21

V=1 doesnt print anything extra for me

Well, it should print at least the commands that are executed. I will leave this for you to solve.

slaff
@slaff
Feb 08 10:28
Try this:
cd $SMING_HOME
git checkout develop
git pull
make dist-clean
cd <your-app>
make clean
make V=1
frankdownunder
@frankdownunder
Feb 08 10:34
Thanks, will look further at it tomorow