Re: AMBER: problem compiling Amber 7

From: Scott Brozell <>
Date: Mon, 15 Jan 2007 09:29:10 -0800


On Sun, 14 Jan 2007, Kevin Cahill wrote:

> I am trying to compile Amber 7
> under a fairly current linux operating system
> and a version 9 of the Intel fortran compiler.
> I get the error:
> etime.c: In function ‘etime_’:
> etime.c:18: error: ‘CLK_TCK’ undeclared (first use in this function)

Ensure that this line
#include <time.h>
is in this file

If it was then try this: edit etime.c and change CLK_TCK to CLOCKS_PER_SEC.

If the problem still remains then go back to the original etime.c;
it might be due to screwy preprocessor issues, but something weird is afoot.
Look in the time.h header file for CLK_TCK.
It is probably /usr/include/time.h and CLK_TCK is probably defined similarly to

# if !defined __STRICT_ANSI__ && !defined __USE_XOPEN2K
# ifndef CLK_TCK
# endif
# endif

figure out how to enforce the definition of CLK_TCK; perhaps by stuffing
the define from time.h into etime.c

I suggest that you upgrade to amber 9.


The AMBER Mail Reflector
To post, send mail to
To unsubscribe, send "unsubscribe amber" to
Received on Wed Jan 17 2007 - 06:07:48 PST
Custom Search