c't

c't-Projekte - Mailinglisten


[Voriger (Datum)] [Nächster (Datum)] [Voriger (Thread)] [Nächster (Thread)]
[Nach Datum][Nach Thread]

Re: [ct-bot] gettimeofday()-Problem

Absender: Timo Sandmann
Datum: Mi, 10.01.2007 00:03:50
In-reply-to: <45A40BD9.5010000@xxxxxx>


Am 09.01.2007 22:40 Uhr schrieb "Arjan Ammerlaan":

> Hallo!
> 
> ich bin erst seit einige Wochen dabei und frage mich was hier los ist:
> 
> Building file: ../command.c
> Invoking: GCC C Compiler
> gcc -DPC -DWIN32 -I"C:\Documents and
> Settings\aammerla\eclipse-workspace\ct-Bot" -I"C:\Documents and
> Settings\aammerla\eclipse-workspace\ct-Bot/include" -I"C:\Program
> Files\MinGW\include" -I"C:\Program Files\pthreads\pthreads.2" -O0 -g3
> -Wall -c -fmessage-length=0 -Wstrict-prototypes -MMD -MP -MF"command.d"
> -MT"command.d" -o"command.o" "../command.c"
> In file included from C:/Documents and
> Settings/aammerla/eclipse-workspace/ct-Bot/include/tcp.h:39,
>                  from ../command.c:50:
> C:/Documents and 
> Settings/aammerla/eclipse-workspace/ct-Bot/include/bot-2-sim.h:65:
> error: conflicting types for 'gettimeofday'
> C:/Program Files/MinGW/include/sys/time.h:40: error: previous
> declaration of 'gettimeofday' was here
> C:/Documents and 
> Settings/aammerla/eclipse-workspace/ct-Bot/include/bot-2-sim.h:65:
> error: conflicting types for 'gettimeofday'
> C:/Program Files/MinGW/include/sys/time.h:40: error: previous
> declaration of 'gettimeofday' was here
> mingw32-make: *** [command.o] Error 1
> 
> Betrifft es hier eine ungewollt doppelte Definition?
> 
> Ich habe am vergangenen WE meinen Rechner inkl. aller Tools frisch
> installiert.
> 
> Vielen Dank für Eure Hilfe!
> 
> Mit freundlichen Grüßen,
> 
> Arjan Ammerlaan

Hallo Arjan,

das Problem ist bekannt und liegt an einer neueren mingw-Version (näheres
dazu steht hier: 
http://www.heise.de/ct/foren/go.shtml?read=1&msg_id=11816368&forum_id=89813.
Mit der neuen Version vom Bot-Code (kommt zeitnah, siehe andere eMail) wird
es auch mit der aktuellen mingw-Version funktionieren.

Noch ein kleiner Tipp am Rande: Am besten den Betreff immer dem eigenen
Anliegen anpassen, dann wird die eMail auch korrekt einsortiert und jeder
weiß gleich, worum es geht.

Viele Grüße,
Timo