Monthly Archive for August, 2007

error: ‘CLK_TCK’ undeclared (first use in this function)

I ran into this problem today when I was doing some patching and compiling of some software.

stats.c:161: error: 'CLK_TCK' undeclared (first use in this function)
stats.c:161: error: (Each undeclared identifier is reported only once
stats.c:161: error: for each function it appears in.)

It seems like CLK_TCK is depricated. Try changing it to CLOCKS_PER_SEC instead.