Bugs item #3126901, was opened at 2010-12-03 15:18
Message generated for change (Tracker Item Submitted) made by igor_filippov
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=428740&aid=3126901&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: Documentation
Group: 2.3.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Igor (igor_filippov)
Assigned to: Nobody/Anonymous (nobody)
Summary: FOR_ATOMS_OF_MOL is not working as described
Initial Comment:
The example given on the documentation page for OBMol is not working.
The error is: ‘OBMolAtomIter’ was not declared in this scope. This is because
OBMolAtomIter in the FOR_ATOMS_OF_MOL should
really be OpenBabel::OBMolAtomIter. One can of course use "using namespace
OpenBabel" but I think it's still a bug.
#include <openbabel/obiter.h>
#include <openbabel/mol.h>
OBMol mol;
double exactMass = 0.0;
FOR_ATOMS_OF_MOL(a, mol)
{
exactMass += a->GetExactMass();
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=428740&aid=3126901&group_id=40728
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
OpenBabel-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-devel