Yuri Petriaev

CW ColdFire v6.4, target MCF5307, Linker doesn't see functions for time support.

Discussion created by Yuri Petriaev on Jul 17, 2007
Latest reply on Jul 18, 2007 by CrasyCat
I am using CW for ColdFire version 6.4. My target is MCF5307. I have enabled time support in "ansi_prefix.E68k.h". I have defined __get_clock, __get_time, __isdst, __to_gm_time in main.c file. The project does not compile and linker throws error stating that these functions are not defined. The exact errors are:
Link Error: Undefined : "__get_clock"
Referenced from "clock" in C_TRK_4i_CF_MSL.a

Link Error: UKndefined: "__get_time"
Referenced from "time" in C_TRK_4i_CF_MSL.a

Link Error: Undefined : "__isdst"
Referenced from "__msl_time2tm" in C_TRK_4i_CF_MSL.a
Referenced from "localtime" in C_TRK_4i_CF_MSL.a
Referenced from "localtime_s" in C_TRK_4i_CF_MSL.a

Link Error: Undefined : "__to_gm_time"
Referenced from "gmtime" in C_TRK_4i_CF_MSL.a

Link failed.
Could any  one tell me what I'm doing wrong and how to force linker to see these functions?
Please see attached PackAndGo.zip with project sources and ansi_prefix.E68k.txt file.
Thank you!
 
Message Edited by t.dowe on 2009-09-04 11:30 AM

Outcomes