根据man手册,在文件中加上以下定义,应该可以去处该warning
       #define _XOPEN_SOURCE /* glibc2 needs this */
       #include 
 
但不起作用(重新编译还是有该warning)
 
加上编译选项-D_XOPEN_SOURCE又出现一大推其他编译错误
 
最后在找到这篇帖子
http://stackoverflow.com/questions/15334558/compiler-gets-warnings-when-using-strptime-function-c
 
在编译选项上同时加上-D_GNU_SOURCE -D__USE_XOPEN,即可解决

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-03
  • 2021-04-25
  • 2021-12-15
  • 2022-12-23
猜你喜欢
  • 2021-05-21
  • 2022-12-23
  • 2021-11-22
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案