On Sunday 23 February 2003 00:28, Bodnar Istvan wrote:
> hi,
>
> is there anybody, who can compile blackbox on FreeBSD? i have the latest
> cvs from sf.net, and i'm still having the problem with Timer.hh
>
> what am i doing wrong? i'm still using 0.65, just wanted to try out the new
> version
>

as Kennis points out, adding the sys/time.h header solves this.  The code in 
Timer.hh is 100% valid code.  We forward declare the struct timeval and then 
use it while the actual timeval is properly included in the .cc file.  The 
2.95.x compiler fails to handle the forward declaration and raises the error.  
The code in 0.65.0 actually has the full include there in the header.  In 
case you are wondering why the Timer.hh file was changed, removing unneeded 
headers helps reduce compilation time and also helps show improper use of 
headers or unstated depends.

For the record, Brad uses FreeBSD but he only compiles with a 3.x compiler and 
the Intel compiler.

Keeping things working on the older compiler requires a good deal of 
diligence.  Until recently 2.9.5.4 was the default compiler on Debian so I 
was using it fairly often.  Now that 3.2 is the default I have to remember to 
test with the 2.95.x series.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
List archives:  http://asgardsrealm.net/lurker/splash/index.html
Trouble? Contact [EMAIL PROTECTED]

Reply via email to