a***e 发帖数: 5 | 1 use struct stat to get inode of a file like this,
...
struct stat stab;
...
...
stat(filename,&stab)
...
gcc says error of "storage size of 'statb' isn't known"
but cc works well.
what's the point? |
m*****e 发帖数: 4193 | 2 did you include the required header files?
【在 a***e 的大作中提到】 : use struct stat to get inode of a file like this, : ... : struct stat stab; : ... : ... : stat(filename,&stab) : ... : gcc says error of "storage size of 'statb' isn't known" : but cc works well. : what's the point?
|
a***e 发帖数: 5 | 3 of course.
i said cc compiler works well.
【在 m*****e 的大作中提到】 : did you include the required header files?
|
m*******m 发帖数: 182 | 4 gcc checks more stuff and more strictly than cc.
This may be a scope problem of the code.
【在 a***e 的大作中提到】 : of course. : i said cc compiler works well.
|
m*******m 发帖数: 182 | 5 gcc checks more stuff and more strictly than cc.
This may be a scope problem of your code.
【在 a***e 的大作中提到】 : of course. : i said cc compiler works well.
|