This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Use mktime() from <time.h>

Other Parts Discussed in Thread: CC3200

Hello,

I'm introducing in my CC3200 board an external RTC that save the date in struct tm format, my code use time_t timestamp.

To convert the timestamp and update the RTC I use gmtime() and it (seems) to work good.

For convert the struct tm retieved from RTC I need to use mktime() but when I use this function the linker block on theese errors:

- undefined reference to `_write'

- undefined reference to `_close'

- undefined reference to `_lseek'

- undefined reference to `_read'

I use gcc compiler with arm-none-eabi toolchain

Need I to include some headers relative to the platform?

Regards,

Rosario