I am trying to compile a program using the zgcc compiler and get the following error:
undefined reference to 'stat'
Here is a small test program that displays the same error:
#include
<sys/stat.h>
main(){
struct stat buf;
char *fn;
int st;
st = stat( fn, &buf );
}
I have checked the obvious that stat.h is there and I have searched this forum and the internet and only come across a couple of references to this, but they were both in a foreign languages. Even translated they didn't seemed to make sense although it seems to be a problem with a library missing or incorrect? I am posting here to see if someone can help me out.
I am using a Zaurus 5500 with the sharp 3.13 ROM. Thanks for any help in advance.