This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: compilig error: storage size of `st' isn't known


On Fri, 3 Sep 2004, Jari Aalto+mail.linux wrote:

> I'm trying to compile Linux program that starts like this:
>
>     int main(int argc, char **argv)
>     {
>       char **dirname = NULL;
>       int i,j,n,p,q,dtotal,ftotal,colored = FALSE;
>       struct stat64 st;
>
> But the compiler says:
>
>     tree.c: In function `main':
>     tree.c:204: error: storage size of `st' isn't known
>     tree.c:204: warning: unused variable `st'
>
> What needs to be done in Cygwin to see "struct stat" ?
> Jari

You can see "struct stat" just fine, but "struct stat64" is non-portable.
Just use "struct stat" -- I believe it's 64-bit in Cygwin anyway.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]