AnsweredAssumed Answered

Linking issues

Question asked by Jagadeesh Kumar on Jul 19, 2018
Latest reply on Jul 23, 2018 by LPCX presso support

Hi all,

 

  I porting my old project which is implemented using atollic to latest version of MCUXpresso.

 

 I have ported successfully but because of the following issue I am not able to build the binary.Any one have any Idea about this issue.Fast help will be appreciated.

 

 c:/nxp/mcuxpressoide_10.2.0_759/ide/tools/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v6-m\libcr_c.a(alloc.o): In function `malloc':
alloc.c:(.text.malloc+0x0): multiple definition of `malloc'
c:/nxp/mcuxpressoide_10.2.0_759/ide/tools/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v6-m\libc.a(lib_a-malloc.o):malloc.c:(.text.malloc+0x0): first defined here
c:/nxp/mcuxpressoide_10.2.0_759/ide/tools/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v6-m\libcr_c.a(alloc.o): In function `free':
alloc.c:(.text.free+0x0): multiple definition of `free'
c:/nxp/mcuxpressoide_10.2.0_759/ide/tools/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v6-m\libc.a(lib_a-malloc.o):malloc.c:(.text.free+0x0): first defined here
collect2.exe: error: ld returned 1 exit status

 

I have used my own linker file and attached here.Let me know if more information is needed

Attachments

Outcomes