/usr/include/x86_64-linux-gnu/bits/stat.h:91:21: error: field
‘st_atim’ has incomplete type
struct timespec st_atim; /* Time of last access. */
^
/usr/include/x86_64-linux-gnu/bits/stat.h:92:21: error: field
‘st_mtim’ has incomplete type
struct timespec st_mtim; /* Time of last modification. */
^
/usr/include/x86_64-linux-gnu/bits/stat.h:93:21: error: field
‘st_ctim’ has incomplete type
struct timespec st_ctim; /* Time of last status change. */
^
In file included from
今天进行代码移植的时候发现代码报这个编译错误,到网上找了下,
原因是我的代码库里边有名为time.h的文件,
需要改下名字,不能再用这个名字
参考地址1:
https://permalink.gmane.org/gmane.comp.gis.grass.devel/59030
解决问题地址1:
https://stackoverflow.com/questions/14947691/c-system-file-bits-stat-h-suddenly-breaks-with-error-field-st-atim-has-inc
描述:
/usr/include/x86_64-linux-gnu/bits/stat.h:91:21