delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/03/08:41:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 3 Sep 2004 08:41:05 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Jari Aalto+mail.linux" <letters AT hotpop DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: compilig error: storage size of `st' isn't known
In-Reply-To: <20040903073117.IIQQ21628.fep32-app.kolumbus.fi@W2KPICASSO.blue.sea>
Message-ID: <Pine.GSO.4.61.0409030834030.28876@slinky.cs.nyu.edu>
References: <20040903073117 DOT IIQQ21628 DOT fep32-app DOT kolumbus DOT fi AT W2KPICASSO DOT blue DOT sea>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

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 AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019