osra-users Mailing List for osra
Brought to you by:
igor_filippov
You can subscribe to this list here.
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
|---|
|
From: Matthew L. <ml...@gm...> - 2014-12-16 16:34:33
|
Hi all,
I was trying to build the new version of OSRA, and I encountered something
that I couldn't find a quick route around. I built all of the needed
dependancies without issue, but during the compilation of the main
application I got the following:
osra_reaction.cpp: In function ‘std::string convert_page_to_reaction(const
std::vector<std::basic_string<char> >&, const string&, const
std::vector<int>&, const std::vector<int>&, std::string, bool)’:
osra_reaction.cpp:56:7: error: ‘shared_ptr’ was not declared in this scope
shared_ptr<OBMol> reactant(new OBMol);
^
osra_reaction.cpp:56:7: note: suggested alternative:
In file included from /usr/include/c++/4.8.2/tr1/memory:50:0,
from
/usr/local/include/openbabel-2.0/openbabel/shared_ptr.h:28,
from
/usr/local/include/openbabel-2.0/openbabel/reaction.h:23,
from osra_reaction.cpp:27:
/usr/include/c++/4.8.2/tr1/shared_ptr.h:503:11: note:
‘std::tr1::shared_ptr’
class shared_ptr;
^
osra_reaction.cpp:56:23: error: expected primary-expression before ‘>’ token
shared_ptr<OBMol> reactant(new OBMol);
^
osra_reaction.cpp:56:43: error: ‘reactant’ was not declared in this scope
shared_ptr<OBMol> reactant(new OBMol);
^
osra_reaction.cpp:62:7: error: ‘shared_ptr’ was not declared in this scope
shared_ptr<OBMol> product(new OBMol);
^
osra_reaction.cpp:62:7: note: suggested alternative:
In file included from /usr/include/c++/4.8.2/tr1/memory:50:0,
from
/usr/local/include/openbabel-2.0/openbabel/shared_ptr.h:28,
from
/usr/local/include/openbabel-2.0/openbabel/reaction.h:23,
from osra_reaction.cpp:27:
/usr/include/c++/4.8.2/tr1/shared_ptr.h:503:11: note:
‘std::tr1::shared_ptr’
class shared_ptr;
^
osra_reaction.cpp:62:23: error: expected primary-expression before ‘>’ token
shared_ptr<OBMol> product(new OBMol);
^
osra_reaction.cpp:62:42: error: ‘product’ was not declared in this scope
shared_ptr<OBMol> product(new OBMol);
^
make[2]: *** [osra_reaction.o] Error 1
I read that with a more modern version of gcc/g++ that I might have to add
a flag to tell the compiler to go back and use an older interpretation of
C++. That also failed. Has anyone else seen this?
Thanks,
Matthew
|