I am AWFULLY sorry; this was all my fault. ... I tried to compile the file from the command line and got the same errors. I tried gcc -E to do just the preprocessing, and the declaration was there OK. I checked the code, and there it was, glaring: struct timeval system_time; ... gettimeofday(&timeval, 0); ... &timeval????? SHAME on me! I'll try to get smarter ... Thanks again. Nacho de los Ríos Tormo Procedimientos Integrados S.L. Sevillanos, 67 28609 Sevilla la Nueva, Madrid SPAIN