Re: [Open Babel] Cannot create objects using C++ API

2013-02-12 Thread Paul Becherer
> 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"). Thi

Re: [Open Babel] Cannot create objects using C++ API

2013-02-12 Thread Peter
Thanks to all for the help. Had to specify use namespace OpenBabel; and it worked perfectly. -- Peter -- View this message in context: http://forums.openbabel.org/Cannot-create-objects-using-C-API-tp4655946p4655956.html Sent from the General discussion mailing list archive at Nabble.com.

Re: [Open Babel] Cannot create objects using C++ API

2013-02-12 Thread David van der Spoel
On 2013-02-12 15:45, Peter wrote: > Thanks for the prompt reply. Now I return back to the same issue: > main.cpp:7: error: ‘OBConversion’ was not declared in this scope > main.cpp:7: error: expected ‘;’ before ‘conv’ > main.cpp:8: error: ‘conv’ was not declared in this scope > main.cpp:9: error: ‘O

Re: [Open Babel] Cannot create objects using C++ API

2013-02-12 Thread Peter
Thanks for the prompt reply. Now I return back to the same issue: main.cpp:7: error: ‘OBConversion’ was not declared in this scope main.cpp:7: error: expected ‘;’ before ‘conv’ main.cpp:8: error: ‘conv’ was not declared in this scope main.cpp:9: error: ‘OBMol’ was not declared in this scope main.cp

Re: [Open Babel] Cannot create objects using C++ API

2013-02-12 Thread David Hall
You have conv->Write It should be conv.Write , just like how you have conv.Read -David On Feb 12, 2013, at 8:48 AM, Peter wrote: > "You need to replace it by a ." > - Sorry I dont get that. Can you please elaborate this. > > Thanks, > Peter > > > > -- > View this message in context: >

Re: [Open Babel] Cannot create objects using C++ API

2013-02-12 Thread David van der Spoel
On 2013-02-12 14:48, Peter wrote: > "You need to replace it by a ." > - Sorry I dont get that. Can you please elaborate this. > This is not really a babel question but a c++ question. Your object is not a pointer hence you don't use "->" but "." to designate an element of the class. > Thanks,

Re: [Open Babel] Cannot create objects using C++ API

2013-02-12 Thread Peter
"You need to replace it by a ." - Sorry I dont get that. Can you please elaborate this. Thanks, Peter -- View this message in context: http://forums.openbabel.org/Cannot-create-objects-using-C-API-tp4655946p4655952.html Sent from the General discussion mailing list archive at Nabble.com.

Re: [Open Babel] 2.3.2

2013-02-12 Thread Chris Morley
On 12/02/2013 09:38, Chris Swain wrote: > > On 12 Feb 2013, at 07:32, > openbabel-discuss-requ...@lists.sourceforge.net > wrote: > >> Message: 3 >> Date: Sun, 10 Feb 2013 19:40:53 + >> From: Chris Morley mailto:c.mor...@gaseq.co.uk>> >> S

Re: [Open Babel] 2.3.2

2013-02-12 Thread Chris Swain
On 12 Feb 2013, at 07:32, openbabel-discuss-requ...@lists.sourceforge.net wrote: > Message: 3 > Date: Sun, 10 Feb 2013 19:40:53 + > From: Chris Morley > Subject: Re: [Open Babel] 2.3.2 > To: openbabel-discuss@lists.sourceforge.net > Message-ID: <5117f7c5.9000...@gaseq.co.uk> > Content-Type:

Re: [Open Babel] 2.3.2

2013-02-12 Thread Chris Swain
Hi, Thanks for this. As an aside, should I move away from using obgrep in the future? Cheers Chris On 12 Feb 2013, at 07:32, openbabel-discuss-requ...@lists.sourceforge.net wrote: > Message: 3 > Date: Sun, 10 Feb 2013 19:40:53 + > From: Chris Morley > Subject: Re: [Open Babel] 2.3.2 > To: