Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: Date: Wed, 6 Oct 2004 23:18:20 +0800 From: "Edward L. Fox" Reply-To: "Edward L. Fox" To: cygwin AT cygwin DOT com Subject: Re: compilig error: storage size of `st' isn't known In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: X-IsSubscribed: yes 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: edyfox AT gmail DOT com On Fri, 03 Sep 2004 10:29:45 +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" ? > > 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/