How to use time related routine in ewl library

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use time related routine in ewl library

Jump to solution
847 Views
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.

Labels (1)
0 Kudos
1 Solution
792 Views
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 

View solution in original post

0 Kudos
1 Reply
793 Views
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 Kudos