Hi Riccardo, I don't think it's possible to help you without knowing more about the system you are using to compile openbabel. I just compiled version 2.3.2 successfully on a Linux machine using gcc 4.4.7 and cmake version 2.8.12.2 and boost 1.05.7 (BOOST_VERSION 105700 in version.hpp). Are you sure you are either using a rather recent version of your compiler of choice (shared_ptr is C++17 and, hence, a rather recent addition [according to this site http://en.cppreference.com/w/cpp/memory/shared_ptr]) or have boost installed (because openbabel uses boost's shared pointer equivalent if shared_ptr cannot be used [at least if I read include/openbabel/shared_ptr.h correctly]).
Glancing over the error messages, it looks as if everything is a direct consequence of shared_ptr not being defined. So installing boost or updating your compiler might help. Hope this helps, Torsten On Thu, 8 Sep 2016, openbabel-discuss-requ...@lists.sourceforge.net wrote: > Send OpenBabel-discuss mailing list submissions to > openbabel-discuss@lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/openbabel-discuss > or, via email, send a message with subject or body 'help' to > openbabel-discuss-requ...@lists.sourceforge.net > > You can reach the person managing the list at > openbabel-discuss-ow...@lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of OpenBabel-discuss digest..." > > > Today's Topics: > > 1. error: ?std::tr1? has not been declared using > std::tr1::shared_ptr (riccardo innocenti) > 2. How to enumerate all possible stereoisomers of a molecule > with a not defined stereocenter? (Giovanni Cincilla) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 8 Sep 2016 06:58:52 +0000 > From: riccardo innocenti <riccardo-1...@live.it> > Subject: [Open Babel] error: ?std::tr1? has not been declared > using std::tr1::shared_ptr > To: "openbabel-discuss@lists.sourceforge.net" > <openbabel-discuss@lists.sourceforge.net> > Message-ID: > > <db6pr10mb0343c98a7eaea309d0f56f49f0...@db6pr10mb0343.eurprd10.prod.outlook.com> > > Content-Type: text/plain; charset="windows-1252" > > Hi everyone, > > I saw some potential solutions online, but I found them extremely hard to > understand. Could anybody please point me to a potential solution and > relevant material to understand how to implement it? > > Kind regards, > Riccardo > > > [ 0%] Building CXX object src/CMakeFiles/openbabel.dir/alias.o > In file included from > /usr/local/src/openbabel-2.3.2/include/openbabel/alias.h:19:0, > from /usr/local/src/openbabel-2.3.2/src/alias.cpp:17: > /usr/local/src/openbabel-2.3.2/include/openbabel/shared_ptr.h:27:14: error: > ?std::tr1? has not been declared > using std::tr1::shared_ptr; > ^ > In file included from /usr/local/src/openbabel-2.3.2/src/alias.cpp:17:0: > /usr/local/src/openbabel-2.3.2/include/openbabel/alias.h:118:47: error: > ?shared_ptr? was not declared in this scope > typedef std::vector< std::pair<std::string, shared_ptr<OBSmartsPattern> > > > SmartsTable; > ^ > /usr/local/src/openbabel-2.3.2/include/openbabel/alias.h:118:73: error: > template argument 2 is invalid > typedef std::vector< std::pair<std::string, shared_ptr<OBSmartsPattern> > > > SmartsTable; > ^ > /usr/local/src/openbabel-2.3.2/include/openbabel/alias.h:118:75: error: > template argument 1 is invalid > typedef std::vector< std::pair<std::string, shared_ptr<OBSmartsPattern> > > > SmartsTable; > ^ > /usr/local/src/openbabel-2.3.2/include/openbabel/alias.h:118:75: error: > template argument 2 is invalid > /usr/local/src/openbabel-2.3.2/include/openbabel/alias.h:118:77: error: > expected unqualified-id before ?>? token > typedef std::vector< std::pair<std::string, shared_ptr<OBSmartsPattern> > > > SmartsTable; > ^ > /usr/local/src/openbabel-2.3.2/include/openbabel/alias.h:119:24: error: > ?SmartsTable? has not been declared > static bool LoadFile(SmartsTable& smtable); > ^ > /usr/local/src/openbabel-2.3.2/src/alias.cpp:239:26: error: ?bool > OpenBabel::AliasData::LoadFile? is not a static data member of ?class > OpenBabel::AliasData? > bool AliasData::LoadFile(SmartsTable& smtable) > ^ > /usr/local/src/openbabel-2.3.2/src/alias.cpp:239:26: error: ?SmartsTable? was > not declared in this scope > /usr/local/src/openbabel-2.3.2/src/alias.cpp:239:39: error: ?smtable? was not > declared in this scope > bool AliasData::LoadFile(SmartsTable& smtable) > ^ > /usr/local/src/openbabel-2.3.2/src/alias.cpp:240:1: error: expected ?,? or > ?;? before ?{? token > { > ^ > /usr/local/src/openbabel-2.3.2/src/alias.cpp:396:1: error: expected ?}? at > end of input > }//namespace > ^ > src/CMakeFiles/openbabel.dir/build.make:62: recipe for target > 'src/CMakeFiles/openbabel.dir/alias.o' failed > make[2]: *** [src/CMakeFiles/openbabel.dir/alias.o] Error 1 > CMakeFiles/Makefile2:1232: recipe for target > 'src/CMakeFiles/openbabel.dir/all' failed > make[1]: *** [src/CMakeFiles/openbabel.dir/all] Error 2 > Makefile:138: recipe for target 'all' failed > make: *** [all] Error 2 > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ ------------------------------------------------------------------------------ _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss