AnsweredAssumed Answered

How to link libc.a in S32 Design Studio?

Question asked by Yong Yin on Apr 5, 2016
Latest reply on Dec 22, 2016 by Martin Kovar


I'm trying to call functions in C standard library, e.g. printf(...). I created a new S32DS project with Newlib setting, but got some error when linking:

/home/rb501c/build_gcc_dir/build_gnu/opt/freescale/ELvle/obj_newlib/powerpc-eabivle/fp/e200z4/libgloss/libnosys/../../../../../../src_newlib/libgloss/libnosys/sbrk.c:21: undefined reference to `end'

/home/rb501c/build_gcc_dir/build_gnu/opt/freescale/ELvle/obj_newlib/powerpc-eabivle/fp/e200z4/libgloss/libnosys/../../../../../../src_newlib/libgloss/libnosys/sbrk.c:21: undefined reference to `end'

collect2.exe: error: ld returned 1 exit status

make: *** [HwTest2.elf] Error 1

 

I also tried to call another function sleep(1) but indicated that it's undefined. I included <sys/unitstd.h>.

 

If anybody have any idea about newlib configuration for libc.a?

Outcomes