Two out of three is better than most first posters achieve despite the clear instructions in the "PLEASE READ BEFORE POSTING A QUESTION" thread. Post the Compile Log - all of it. Copy & Pasting is is easier for you that 'describing it', and provides essential diagnostic information we need. In at least 8 out of 10 cases I would guess, provision of the complete log facilitates a solution in the first response.
I somehow doubt that that is the only diagnostic generated; gettimeofday() is a Posix function, and is not provided by the MSVCRT library used by MinGW/GCC - note that it does not use the GNU library.
Hi,
i'm new of forum.
I have problem with DEV-C++ 4.9.9.2 and "struct timezone"
include <stdio.h>
include <stdlib.h>
include <time.h>
double ReadTimestamp ( struct timeval *_tstart )
{
struct timezone tz;
gettimeofday( _tstart, &tz);
return ( (double)_tstart->tv_sec + (double)_tstart->tv_usec/(1000*1000) );
}
i have the compile error:
storage size of 'tz' isn't known
what's the problem?
A path of devc?
Two out of three is better than most first posters achieve despite the clear instructions in the "PLEASE READ BEFORE POSTING A QUESTION" thread. Post the Compile Log - all of it. Copy & Pasting is is easier for you that 'describing it', and provides essential diagnostic information we need. In at least 8 out of 10 cases I would guess, provision of the complete log facilitates a solution in the first response.
I somehow doubt that that is the only diagnostic generated; gettimeofday() is a Posix function, and is not provided by the MSVCRT library used by MinGW/GCC - note that it does not use the GNU library.
An implementation of gettimeofday() is available at http://www.openasthra.com/c-tidbits/gettimeofday-function-for-windows/
The functions provided by the standard time.h are described here: http://cplusplus.com/reference/clibrary/ctime/
Clifford
Thanks :)