在线时间8 小时
UID2023037
注册时间2013-7-4
NXP金币0
该用户从未签到
中级会员
 
- 积分
- 326
- 最后登录
- 1970-1-1
|
发表于 2014-4-22 11:30:52
|
显示全部楼层
RE:GCC工程链接出错undefined reference to gmtime
刚才看到一个同事给的关于time.h的答案:
Unfortunately the time functions are not implemented - This header file (time.h) is provided for compatibility only, the implementation is fully hardware dependent.
"The ANSI library provides several functions to get the current time. In an embedded systems environment, implementations for these functions cannot be provided because different targets may use different ways to count the time."
If you need it, you have to write your own functions (if you have some Real Time Clock component on your board) |
|