Re: compilig error: storage size of `st' isn't known (FAQ alert)

2004-10-07 Thread Joshua Daniel Franklin
On Wed, 6 Oct 2004 11:13:46 -0400, Christopher Faylor
<[EMAIL PROTECTED]> wrote:
> >What needs to be done in Cygwin to see "struct stat" ?
> 
> There is no stat64 in cygwin.  Use stat.
> 
> This.  Is a recording.
> 
> I guess it should be a FAQ.

Well, OK, it will be.

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



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

2004-10-06 Thread Edward L. Fox
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 
#include 
#include 

Good luck.


Edward L. Fox

2004-10-06


From: [EMAIL PROTECTED]


On Fri, 03 Sep 2004 10:29:45 +0300, Jari Aalto <[EMAIL PROTECTED]> 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/



Re: compilig error: storage size of `st' isn't known (FAQ alert)

2004-10-06 Thread Christopher Faylor
On Fri, Sep 03, 2004 at 10:29:45AM +0300, Jari Aalto 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" ?

There is no stat64 in cygwin.  Use stat.

This.  Is a recording.

I guess it should be a FAQ.

cgf

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



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

2004-09-03 Thread Igor Pechtchanski
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/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,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/