Hi,
I noticed (after several hours) that when compiling in Release mode functions get mangled in a different manner than when compiling in Debug mode. E.g.:

Release:
$ nm install/lib/libopenbabel.so | grep thermo | grep T
00000000000a2f00 T _ZN9OpenBabel23extract_thermochemistryEPNS_5OBMolEbPiidPdS3_S3_S3_S3_S3_S3_S3_PSt6vectorIdSaIdEES3_

Debug:
nm ~/wd/GG/openbabel-mmgh/install/lib/libopenbabel.so|grep extract_t
0000000000554baf T _ZN9OpenBabel23extract_thermochemistryERNS_5OBMolEbPiidPdS3_S3_S3_S3_S3_S3_S3_RNSt7__debug6vectorIdSaIdEEES3_

Is this by design?

Removing the -D_GLIBCXX_DEBUG from the CMAKE_CXX_FLAGS_DEBUG line in CMakeLists.txt resolves the issue.

--
David van der Spoel, Ph.D., Professor of Biology
Head of Department, Cell & Molecular Biology, Uppsala University.
Box 596, SE-75124 Uppsala, Sweden. Phone: +46184714205.
http://www.icm.uu.se


_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to