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

Edward L. Fox edyfox@gmail.com
Wed Oct 6 15:18:00 GMT 2004


Hi Jari:

    Of course your code cannot be compiled. You should declare "struct stat"
before you use it. The declaration of "struct stat" may be in one of these
files.

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

    Good luck.


                Edward L. Fox

                2004-10-06


From: edyfox@gmail.com


On Fri, 03 Sep 2004 10:29:45 +0300, Jari Aalto <jari.aalto@poboxes.com> 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
> 
> --
> 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/
> 
>

--
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/



More information about the Cygwin mailing list