AMBER Archive (2009)

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

Date: Mon Aug 24 2009 - 22:07:44 CDT

  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>

This compiler error was not found with earlier versions of gcc (4.3.4 running on
OpenSuse and 4.2 running on OsX).

After adding that line the code compiled and passed all the tests in the test

Kevin Gilbert
Serena Software

AMBER mailing list