delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/04/22/05:20:24

From: matsibp AT fschp04 DOT fisci DOT com (Pavel Matsibekker)
Subject: B18: struct tm compiling bug with <time.h>?
22 Apr 1998 05:20:24 -0700 :
Message-ID: <353D0999.A2AF4C0.cygnus.gnu-win32@fschp04.fisci.com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Has anyone run into a problem in B18 when including <time.h> with the
following error:
Date.C:260 invalid use of undefined type 'struct tm'
.....
Date.c 542: Aggregate 'struct tm now' has incomplete type and cannot be
initialized

I'm using
#include <sys/types.h>
#include <time.h>

I'm sure I'm including  time.h because I do:
#ifdef __TIME_H_
struct tm now;
#endif

Has anyone run into this before and solved it?
Please email. Thanx in advance
                                                    pavel

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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