AMBER Archive (2004)

Subject: Re: AMBER: erroe in installing amber8

From: Scott Brozell (sbrozell_at_scripps.edu)
Date: Sun Jul 25 2004 - 19:58:58 CDT


On Sat, 24 Jul 2004, David A. Case wrote:

> On Sat, Jul 24, 2004, anshul_at_imtech.res.in wrote:
>
> > cc -c -DSYSV -o wallclock.o wallclock.c
> > "wallclock.c", line 14: syntax error before or at: __DATE__
> > "wallclock.c", line 14: warning: old-style declaration or incorrect type for: __DATE__
> > "wallclock.c", line 14: warning: old-style declaration or incorrect type for: __TIME__
>
> Try setting -DF90_TIMER in your config.h file. Or, edit wallclock.c to
> make it into a dummy procedure (it just keeps track of timing). Then see
> if you can make sander. You probably should compile the codes one-by-one at
> this point...that makes it much easier to spot problems.

It looks like your compiler is not invoking a preprocessor that
understands __DATE__ and __TIME__.
You can use cc -E wallclock.c to see what happens to __DATE__.
If they are not substituted then try
cc -E -D__DATE__='""' wallclock.c
or merely delete __DATE__ and __TIME__ from wallclock.c

I can compile wallclock.c on
SunOS blabla.yada.edu 5.7 Generic_106541-34 sun4u sparc SUNW,Ultra-4
with
/opt/SUNWspro/bin/cc

Scott

-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber_at_scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo_at_scripps.edu