openwrt 使用 clock

openwrt 使用 clock,第1张

openwrt 使用 clock openwrt

编译器设置

set(CMAKE_SYSROOT /home/luke/openwrt/openwrt/staging_dir/target-mipsel_24kc_musl)

# 指定交叉编译器 arm-gcc 和 arm-g++
# 直接使用绝对路径
set(CMAKE_C_COMPILER /home/luke/openwrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-gcc)
set(CMAKE_CXX_COMPILER /home/luke/openwrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-g++)

现象:秒字段为空始终为0

ubuntu

同样的代码,使用gcc编译器,输出正常

解决办法

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5715095.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存