Re: [AMBER-Developers] Problem installing Amber12

From: Scott Brozell <sbrozell.rci.rutgers.edu>
Date: Wed, 7 Nov 2012 13:20:53 -0500

Hi,

I started to investigate this last month but got distracted...
Dan have you investigated this ?
See below for where i left it.

On Thu, Oct 11, 2012 at 07:50:56AM -0400, David A Case wrote:
> On Wed, Oct 10, 2012, Sajeewa Pemasinghe wrote:
> >
> > 1 error detected in the compilation of "ClusterList.cpp".
> > make[3]: *** [ClusterList.o] Error 2
> > make[3]: Leaving directory
>
> FWIW, I'm having the same problems with pgCC and cpptraj, latest version.
> You should consider changing compilers, or skipping cpptraj compilation.
> C++ compiler error messages can be tremendously opaque.

But as with most compiler error messages, start from the first error emission:

"/wsu/usr/pgi/linux86-64_2.6/11.5/include/CC/stl/_function_base.h", line 76: error:
          no operator "<" matches these operands
            operand types are: const ClusterNode < const ClusterNode
    bool operator()(const _Tp& __x, const _Tp& __y) const { return __x < __y; }
                                                                       ^
          detected during:
...
 
So operator< that takes two const ClusterNode's is missing.
Surprise, surprise, the compiler seems to be right on that account as
shown by grep 'operator<'
./ClusterNode.cpp:41:bool ClusterNode::operator<(const ClusterNode& rhs) {
./ClusterNode.h:12: bool operator<(const ClusterNode&);
./DataSet.h:133: bool operator<(const DataSet& rhs) {
./Action_ClusterDihedral.h:21: bool operator<(const DCnode& rhs) const { return (count_ > rhs.count_); }

And it looks like merely a missing const on the operator< member function.
But i never tested that to nail it down...

scott


_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Wed Nov 07 2012 - 10:30:03 PST
Custom Search