> Why cant I create objects like as provided in the examples. > http://openbabel.org/docs/2.3.1/UseTheLibrary/CppExamples.html
Notice how the example explicitly specifies the namespace ("OpenBabel::OBConversion") which you did not do in your original code (where it just says "OBConversion"). This causes the first compilation error (main.cpp:7: error: ‘OBConversion’ was not declared in this scope) and the rest is probably just a result from not being able to recover from that error. This is standard C++ behavior for namespaces. If you create the object exactly as done in the example, the original issue should be gone. Alternatively, you could declare using namespace OpenBabel; somewhere at the top of the file. Regards, Paul. ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss