[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: windows build failure

From: Dani Moncayo
Subject: Re: windows build failure
Date: Wed, 18 Sep 2013 08:56:31 +0200

>> gcc  -std=gnu99 -DHAVE_CONFIG_H -I. -I/c/trunk/lib -I../src -I/c/trunk/src 
>> -mtune=pentium4   -DUSE_CRT_DLL=1 -I /c/trunk/nt/inc    -g3 -O2 -gdwarf-2 
>> -MT gettimeofday.o -MD -MP -MF .deps/gettimeofday.Tpo -c -o gettimeofday.o 
>> gettimeofday.c
>> gettimeofday.c:102:1: error: conflicting types for 'gettimeofday'
>>  gettimeofday (struct timeval *restrict tv, void *restrict tz)
>>  ^
>> In file included from gettimeofday.c:23:0:
>> c:/trunk/nt/inc/sys/time.h:45:5: note: previous declaration of 
>> 'gettimeofday' was here
>>  int gettimeofday (struct timeval *__restrict, struct timezone *__restrict);
>>      ^
> lib/gettimeofday.c is not supposed to be compiled on Windows (because
> Emacs on Windows provides its own implementation of that function).
> You should see these two lines (far apart) in your output from
> configure:
>  checking for gettimeofday... yes
>  checking for gettimeofday with POSIX signature... almost
> and src/config.h should have this:
>   /* Define to 1 if you have the `gettimeofday' function. */
> If you have different results, look in config.log for the details.
> Btw, what port of GCC and what runtime library and headers are you
> using?

I guess he's using the latest released versions (mingwrt-4.0), because
his error is the same I already reported:


Dani Moncayo

reply via email to

[Prev in Thread] Current Thread [Next in Thread]