How to use time related routine in ewl library

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to use time related routine in ewl library

ソリューションへジャンプ
1,732件の閲覧回数
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,677件の閲覧回数
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,678件の閲覧回数
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 件の賞賛
返信