This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error: L6218E: Undefined symbol

Hi,

I am using RVDS 3.0 to build a ARM9 targetted C- verif environment. I am using the following command and I am getting the following Error while linking the same.

tcc -g --dwarf2 -Iinc,/SCRATCH/arm_h_files,/SCRATCH/arm_h_files,/common -c -D__ARM__ -DENVIRONMENT=\"tb_top.h\" -DDEVICE=\"dut.h\" --apcs /noswst/inter --fpu none --cpu ARM926EJ-S --li -DSYSCLKPERIOD=416 -DURTDEFDIV=4 -DPWMDEFDIV=24 -DLCDDEFDIV=39 -DTMRDEFDIV=12 -DAHBPERIOD=256 hello_ram.c -o obj/hello_r.o
Warning: C3010W: -g defaults to -O2 if no optimisation level is specified

armlink --verbose --elf --scatter /make/common.scf --info unused --info totals --entry 0x00000000 obj/hello.o obj/hello_ram.o /lib/arm_init.a\(vectors.o\) /lib/arm_init.a\(vectors_ram.o\) /lib/arm_init.a /lib/arm_tb.a /lib/arm_hal.a -o obj/hello_irom.elf
ARM Linker, RVCT3.0 [Build 586]

I am getting the following Errors. Could you please let me know what these are ? Have I missed something ?

Warning: L6310W: Unable to find ARM libraries.
Error: L6218E: Undefined symbol __0sprintf (referred from hello.o).
Error: L6218E: Undefined symbol _printf_str (referred from hello.o).
Error: L6218E: Undefined symbol free (referred from hello.o).
Error: L6218E: Undefined symbol malloc (referred from hello.o).
Error: L6218E: Undefined symbol __rt_entry (referred from boot.o).
Error: L6218E: Undefined symbol __builtin_va_start (referred from tb_log.o).
Error: L6218E: Undefined symbol _printf_int_dec (referred from tb_log.o).
Error: L6218E: Undefined symbol vsprintf (referred from tb_log.o).
Finished: 0 information, 6 warning and 8 error messages.
make: *** [obj/hello_irom.elf] Error 1

Could you please let me know if I am missing something or what should I do to get rid of the same.

Awaiting your response.
Thanks and Regards,
Dayananda

+91 9845259517