#include <unistd.h> #include <dirent.h> #include <sys/stat.h> ... lstat( fil->d_name, &inode ); ...
And I get this error:
Warning: implicit declaration of function 'lstat'
I checked the spelling in the #include multiple times. I looked at /usr/include/sys/stat.h and found the prototype for lstat() there. I even copied and pasted the function name to my program for good measure. It still doesn't recognize it. It works when I use stat() and fstat(), but not lstat(). lstat64() doesn't work either.
I have not modified /usr/include/sys/stat.h in any way. The compiler just doesn't recognize lstat() for some very strange reason.


Sign In
Create Account


Back to top









