On Sat, 24 Jul 2004, David A. Case wrote:
> On Sat, Jul 24, 2004, anshul.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.scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo.scripps.edu
Received on Mon Jul 26 2004 - 02:53:00 PDT