Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

dereferencing pointer to incomplete type 'struct stat'

605 views
Skip to first unread message

mche...@gmail.com

unread,
Aug 7, 2015, 3:40:58 AM8/7/15
to
Hi All
I got an error "dereferencing pointer to incomplete type 'struct stat'" , May i know why?

int _fstat(file, st)
int file;struct stat * st; {
st->st_spare1=0x1234;
return 0;
}

thanks
from Peter (cmk...@hotmail.com)

Johann Klammer

unread,
Aug 10, 2015, 4:53:48 AM8/10/15
to
missing include?
try:
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

daniel...@gmail.com

unread,
Feb 3, 2017, 1:44:56 PM2/3/17
to
Your syntax is wrong. I'm not sure what its supposed to be. Google C structures and you should find something useful. Best of luck.
0 new messages