Quantcast

error: ‘std::tr1’ has not been declared using std::tr1::shared_ptr

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

error: ‘std::tr1’ has not been declared using std::tr1::shared_ptr

riccardo innocenti

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


------------------------------------------------------------------------------

_______________________________________________
OpenBabel-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
Loading...