Re: [Open Babel] C++ API: problem with library linking

2012-10-29 Thread Ling Chan
Good to know. But what about the library at Tools/openbabel/install/lib/libopenbabel.dll.a ? This (rather than the cygopenbabel-4.dll) is afterall the "officially" sanctioned library at the Quickstart Example (http://openbabel.org/docs/current/UseTheLibrary/CppExamples.html) Why did it not work?

Re: [Open Babel] C++ API: problem with library linking

2012-10-29 Thread Igor Filippov
Besides MSVC and cygwin there is also MinGW. The latter will give you better speed than cygwin and freedom from MS compiler suite. Igor On Mon, 2012-10-29 at 15:40 -0400, Noel O'Boyle wrote: > Great. > > Cygwin or MSVC is your own personal preference. Cygwin makes it work > like Linux, but the

Re: [Open Babel] C++ API: problem with library linking

2012-10-29 Thread Noel O'Boyle
Great. Cygwin or MSVC is your own personal preference. Cygwin makes it work like Linux, but the MSVC code will run faster (due to the Cygwin emulation later). Myself, I find it hard to write C++ without an IDE, and the Visual Studio IDE seems to work well. A free version (Express) is available. I

Re: [Open Babel] C++ API: problem with library linking

2012-10-28 Thread Ling Chan
Yes, it works now after I have added cygopenbabel-4.dll to the PATH. Many thanks Noel! For a smoother experience moving forward, is it that I should use MSVC++ when I follow the Quickstart example (or write other C++ programs)? Or perhaps I should have changed some settings when making my OpenBabe

Re: [Open Babel] C++ API: problem with library linking

2012-10-28 Thread Noel O'Boyle
You are compiling under Cygwin, so the names of the DLLs are different. If you add cygopenbabel-4.dll to the PATH, then Windows can find it when you run example.exe. - Noel On 28 October 2012 03:33, Ling Chan wrote: > Hello folks, > > I am trying to get started with using the OpenBabel librarie

[Open Babel] C++ API: problem with library linking

2012-10-27 Thread Ling Chan
Hello folks, I am trying to get started with using the OpenBabel libraries in C++. So I followed the Quickstart example on the docs at http://openbabel.org/docs/current/UseTheLibrary/CppExamples.html But it gives the following complaints upon compilation: example.o:example.cpp:(.text+0x10c): und