Bugs item #3400330, was opened at 2011-08-29 22:55 Message generated for change (Tracker Item Submitted) made by th9 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428740&aid=3400330&group_id=40728
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Installation/Building Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: My Th (th9) Assigned to: Nobody/Anonymous (nobody) Summary: r4542 breaks build Initial Comment: Scanning dependencies of target openbabel [ 0%] Building CXX object src/CMakeFiles/openbabel.dir/stereo/perception.o /home/reinis/Hack/OpenBabel/openbabel/openbabel/trunk/src/stereo/perception.cpp: In function ‘bool OpenBabel::TetStereoToWedgeHash(OpenBabel::OBMol&, std::map<OpenBabel::OBBond*, OpenBabel::OBStereo::BondDirection>&, std::map<OpenBabel::OBBond*, long unsigned int>&)’: /home/reinis/Hack/OpenBabel/openbabel/openbabel/trunk/src/stereo/perception.cpp:2591:66: error: call of overloaded ‘abs(double)’ is ambiguous /usr/include/stdlib.h:771:12: note: candidates are: int abs(int) /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4/cstdlib:170:3: note: long long int __gnu_cxx::abs(long long int) /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4/cstdlib:139:3: note: long int std::abs(long int) make[2]: *** [src/CMakeFiles/openbabel.dir/stereo/perception.o] Error 1 make[1]: *** [src/CMakeFiles/openbabel.dir/all] Error 2 make: *** [all] Error 2 Attached patch fixes it by using C++ math header which supports abs(double) by properly overloading function. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428740&aid=3400330&group_id=40728 ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ OpenBabel-Devel mailing list OpenBabel-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-devel