I have just discovered that I can lose the error message by replacing
'g_lstat' with 'gstat', or I can keep 'g_lstat' and remove the '-ansi'
flag from my makefile.
It seems that 'stat' is ansi compliant, but 'lstat' is not.
Kevin
___
gtk-app-devel-li
Thanks for the reply ztl_post,
gstdio.h #includes , so I did not think I had to include it
myself.
Adding it to my source file does not solve the problem, nor did adding all
the #includes shown by 'man lstat':
#include
#include
#include
I have checked for stat.h on my system - it
(filename,filedata);
>
> I am getting a compiler error:
>
>"Warning: implicit declaration of function `lstat'"
>
> There are no other error messages.
>
> g_lstat is #defined as lstat in gstdio.h.
so, you must #include to make
I am trying to use g_lstat to obtain the attributes of a file.
Partial source code:
#include
#include
struct stat*filedata;
gintresult;
result = g_lstat(filename,filedata);
I am getting a compiler error:
"Warning: implicit declaration of function `