AMBER Archive (2009)

Subject: Re: [AMBER] problem compiling amber tools with gcc-4.4.1

From: case (
Date: Tue Aug 25 2009 - 07:52:35 CDT

On Mon, Aug 24, 2009, wrote:

> I was compiling the latest amber tools 1.2 on a RedHat 5.3 linux
> system using the gcc-4.4.1 and I got a compiler error in the file
> fortran.cpp in ../amber10/src/gleap/mortsrc/common. The compiler
> complained that sprintf was not declared in that namespace. The solution
> is to add the cstdio include file by adding a line at the top of
> fortran.cpp:
> #include <cstdio>

Thanks. We'll get that into CVS -- hopefully a new release of AmberTools will
be available soon. Interestingly, the problem does not show up with gcc 4.4.0
on Mac OSX. So, it might be something new in 4.4.1(?). The general behavior
is the g++ becomes stricter as new versions are released.


AMBER mailing list