AMBER Archive (2007)Subject: Re: AMBER: problem compiling Amber 7
From: Scott Brozell (sbrozell_at_scripps.edu)
Date: Mon Jan 15 2007 - 11:29:10 CST
Hi,
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
7/src/Machines/standard/etime.c
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
# define CLK_TCK CLOCKS_PER_SEC
# 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.
Scott
-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber_at_scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo_at_scripps.edu
|