Re: amber-developers: C89 proposal

From: Scott Brozell <sbrozell.scripps.edu>
Date: Mon, 23 Oct 2006 14:16:11 -0700

Hi Dave,


On Mon, 23 Oct 2006, David A. Case wrote:

> On Sun, Oct 22, 2006, Scott Brozell wrote:
>
> > cc-1241 cc: ERROR File = ptraj.c, Line = 4037
> > A declaration cannot appear after an executable statement in a block.
> >
> > int natomCL = lesSize( atoms );
>
> Aargh! This is bugfix.1 for Amber9, but it looks like it was not included
> in the Amber 10 tree. Should be fixed now.

Thanks.
The larger issue is the merit of picking c89 vs c99, and enforcing that by
using for example gcc -std=c89. As for fortran 95 the advantage of
compiler getting feedback about nonstandard language constructs is that
we can keep them out of the sources and avoid this platform specific
nuisance.

Scott
Received on Wed Oct 25 2006 - 06:07:16 PDT
Custom Search