AMBER Archive (2009)

Subject: Re: [AMBER] AmberTools 1.2 Installation on Ubuntu 9.10 Karmic Koala

From: case (case_at_biomaps.rutgers.edu)
Date: Mon Nov 09 2009 - 14:41:59 CST


On Mon, Nov 09, 2009, Mark Williamson wrote:

> Attempting to perhaps preempt your next question, I'm also using Ubuntu
> 9.10 on my desktop and I see the following.
>
> <...snip....>
> g++ -c -O2 -Wall -W -D_REENTRANT -I../../freelib -I../../freelib -o
> fortran.o fortran.cpp
> fortran.cpp: In function ‘void mort::write_ivalue(std::ostream&, const
> std::string&, const boost::any&)’:
> fortran.cpp:19: error: ‘sprintf’ was not declared in this scope
> <....failure....>
>
> If so, add the following include (cstdio) to top of
>
> ./src/gleap/mortsrc/common/fortran.cpp
>
>
> #include <cassert>
> #include <iostream>
> #include <stdexcept>
> #include "fortran.hpp"
> #include "algorithm.hpp"
>
>
>
> so that it now reads:
>
> #include <cassert>
> #include <iostream>
> #include <stdexcept>
> #include <cstdio>
> #include "fortran.hpp"
> #include "algorithm.hpp"
>
> I think the verion of g++ (part of the 4.4.1 gnu compiler set) shipped
> with Ubuntu 9.10 has become stricter.

Thanks! Can you commit the fix to CVS?

...dave

_______________________________________________
AMBER mailing list
AMBER_at_ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber