How to use time related routine in ewl library

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to use time related routine in ewl library

跳至解决方案
1,735 次查看
momo
NXP Employee
NXP Employee

Hi:

I'm using MPC5748G SDK3.0.0. I have:

1. Selected ewl_c9x library in project property

2. Added the following macro in project property.

Capture.JPG

3. Added "#include <ctime>" in the code

The usage of variables clock_t, time_t is ok, but when I tried to call time related routines, such as "clock()", "mktime()", the error was reported that "undefined reference to `****`"

Could you help to provide a way to use the routine in ewl library?

Thank you.

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
1,680 次查看
jiri_kral
NXP Employee
NXP Employee

Hi William, 

it looks, that library archive (libc99.a) doesn't contain binary for clock functions (based on output from nm libc99.a command). You can use newlib instead EWL. 

Hope it helps. 

Jiri 

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,681 次查看
jiri_kral
NXP Employee
NXP Employee

Hi William, 

it looks, that library archive (libc99.a) doesn't contain binary for clock functions (based on output from nm libc99.a command). You can use newlib instead EWL. 

Hope it helps. 

Jiri 

0 项奖励
回复