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_LIBRARY_PATH=$OB_PREFIX/lib
BABEL_LIBDIR=$OB_PREFIX/lib/openbabel/2.3.2
BABEL_DATADIR=$OB_PREFIX/share/openbabel/2.3.2

Good Luck,
Igor Leontyev

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to