Home

January 22nd, 2007

09:44 pm
compiling libggi-2.2.1

So I ran into the following problem while attempting to compile libggi:

speed.c: In function 'time_offset':
speed.c:63: error: 'CLK_TCK' undeclared (first use in this function)
speed.c:63: error: (Each undeclared identifier is reported only once
speed.c:63: error: for each function it appears in.)
speed.c: In function 'time_stop':
speed.c:76: error: 'CLK_TCK' undeclared (first use in this function)

Apparently, CLK_TCK is obsolete, it's been replaced by CLOCKS_PER_SEC. So I had to edit speed.c and replace it all. Everything compiles okay now.