On Thu, Jul 26, 2012 at 10:35 AM, Geoff Hutchison <ge...@geoffhutchison.net> wrote: >> When I build the most recent revision in SVN, 4965, with Eigen2 >> installed, it fails to compile due to an ambiguous overloaded call to >> Matrix. But with Eigen3 installed, it works. > > That's my mistake, since I only have Eigen3 installed on my machines. If you > can give me the compile error, I should be able to fix for Eigen2 as well.
Sorry for the line-wrapped mess. This is the error message: [ 27%] Building CXX object src/CMakeFiles/openbabel.dir/distgeom.o /home/ec2-user/openbabel/src/distgeom.cpp: In constructor ‘OpenBabel::DistanceGeometryPrivate::DistanceGeometryPrivate(unsigned int)’: /home/ec2-user/openbabel/src/distgeom.cpp:40: error: call of overloaded ‘Matrix(const unsigned int&, const unsigned int&)’ is ambiguous /usr/local/include/eigen2/Eigen/src/Core/Matrix.h:373: note: candidates are: Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(const double&, const double&) [with _Scalar = float, int _Rows = 10000, int _Cols = 10000, int _Options = 2, int _MaxRows = 10000, int _MaxCols = 10000] /usr/local/include/eigen2/Eigen/src/Core/Matrix.h:365: note: Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(const float&, const float&) [with _Scalar = float, int _Rows = 10000, int _Cols = 10000, int _Options = 2, int _MaxRows = 10000, int _MaxCols = 10000] /usr/local/include/eigen2/Eigen/src/Core/Matrix.h:348: note: Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(int, int) [with _Scalar = float, int _Rows = 10000, int _Cols = 10000, int _Options = 2, int _MaxRows = 10000, int _MaxCols = 10000] make[2]: *** [src/CMakeFiles/openbabel.dir/distgeom.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [src/CMakeFiles/openbabel.dir/all] Error 2 make: *** [all] Error 2 I've run this on an Amazon instance to ensure I had a clean system to work with. The error also occurs on my own computer, though. The set-up and build procedure is below. Thanks, Jeff AMI: amzn-ami-pv-2012.03.3.x86_64-ebs (ami-aecd60c7) sudo yum -y install strace ltrace cmake make gcc-c++ cairo cairo-devel readline-devel libxml2-devel svn wget http://bitbucket.org/eigen/eigen/get/2.0.17.tar.bz2 mv 2.0.17.tar.bz2 Eigen_2.0.17.tar.bz2 tar xf Eigen_2.0.17.tar.bz2 cd eigen-eigen-b23437e61a07/ cmake . make sudo make install cd svn co https://openbabel.svn.sourceforge.net/svnroot/openbabel/openbabel/trunk openbabel cd openbabel mkdir build cd build/ cmake ../ make ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss