Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Wed, 6 Oct 2004 11:13:46 -0400
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: compilig error: storage size of `st' isn't known (FAQ alert)
Message-ID: <20041006151346.GG29289@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <hdqfg68m.fsf@blue.sea.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <hdqfg68m.fsf@blue.sea.net>
User-Agent: Mutt/1.4.1i

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/

