Re: Warning: implicit declaration of function `lstat'
- From: ztl_post <ztl_post 163 com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Warning: implicit declaration of function `lstat'
- Date: Sun, 11 Sep 2005 13:33:01 +0800
On Sat, Sep 10, 2005 at 04:43:03PM +0100, Pseudo Nym wrote:
I am trying to use g_lstat to obtain the attributes of a file.
Partial source code:
#include <glib.h>
#include <glib/gstdio.h>
struct stat *filedata;
gint result;
result = g_lstat(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 <sys/stat.h> to make lstat declared.
see man lstat.
Thanks for any advice,
Kevin
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
-------------------------
--
Don't look now, but the man in the moon is laughing at you.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]