Re: [Open Babel] Problem for compiling the example files

2013-12-29 Thread Igor Leontyev
I have reproduced the compilation problem in Ubuntu 12.04, gcc-4.6.3. In CentOS with gcc-4.4.6 there is no such problem. Solution: Put $(LDFLAGS) at the end of the linking line as follows: $(CC) example.o -o example $(LDFLAGS) P.S. When executing the examples don't forget to set LD_LIB

Re: [Open Babel] Problem for compiling the example files

2013-11-23 Thread Nicolas Cheron
Thank you for your answers. Moving -lopenbabel didn't work for me, but using Noel's suggestion I found a way to make a working Makefile (even if cmake is working perfectly fine). If someone faces the same problems, here is my Makefile: TARGET =example.exe SOURCES =example.cpp OBJECTS =$(SOURCES:

Re: [Open Babel] Problem for compiling the example files

2013-11-19 Thread Noel O'Boyle
I'll update the docs... On 19 November 2013 15:03, rafel israels wrote: > Hi Nicolas, > > in my case (also Ubuntu) the problem was that I had to move the > -lopenbabel to the end of the line. Seems like your's might be the same > problem ? > > Also I'd recommend to split your command in two, fi

Re: [Open Babel] Problem for compiling the example files

2013-11-19 Thread rafel israels
Hi Nicolas, in my case (also Ubuntu) the problem was that I had to move the -lopenbabel to the end of the line. Seems like your's might be the same problem ? Also I'd recommend to split your command in two, first a compile and then the linking command. That way it's easier to locate problems.

Re: [Open Babel] Problem for compiling the example files

2013-11-19 Thread Noel O'Boyle
When running "make" with the CMakeLists.txt, use instead "VERBOSE=1 make" and you can see the commands to g++. This may help answer your questions. - Noel On 17 November 2013 22:56, Nicolas Cheron wrote: > Hello, > > I want to give an update of my problem in case other people face it in the > fu

Re: [Open Babel] Problem for compiling the example files

2013-11-19 Thread Nicolas Cheron
Hello, I want to give an update of my problem in case other people face it in the future. I solved it only partially. Here is what I did, after installing on Virtualbox a clean Ubuntu Gnome 13.10 64bits system, and downloading the openbabel source (I tried with 2.3.1 and 2.3.2 the same procedure):

Re: [Open Babel] Problem for compiling the example files

2013-11-14 Thread Nicolas Cheron
Thanks for your answer. Unfortunately, this doesn't work. OpenBabel was installed properly (I think) and is working well. Nicolas -- View this message in context: http://forums.openbabel.org/Problem-for-compiling-the-example-files-tp4656837p4656842.html Sent from the General discussion mailing

Re: [Open Babel] Problem for compiling the example files

2013-11-13 Thread Noel O'Boyle
The manual is here: http://openbabel.org/docs/current/UseTheLibrary/CppExamples.html Does this not work for you? Did you run "make install" when compiling Open Babel? - Noel On 12 November 2013 19:56, Nicolas Cheron wrote: > Dear all, > > I am trying to use the OpenBabel library in one of my pr