mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-17 07:20:48 +03:00
fixing errors while building with oxlm: renamed iptr to boost_iptr because of a conflict with eigen library required by oxlm, added boost_serialization to oxlm requirements in jamroot
This commit is contained in:
parent
e14a71c3ea
commit
347980fd42
1
Jamroot
1
Jamroot
@ -183,7 +183,6 @@ requirements += [ option.get "with-mm" : : <define>MAX_NUM_FACTORS=4 ] ;
|
||||
requirements += [ option.get "unlabelled-source" : : <define>UNLABELLED_SOURCE ] ;
|
||||
|
||||
if [ option.get "with-oxlm" ] {
|
||||
external-lib boost_serialization ;
|
||||
external-lib gomp ;
|
||||
requirements += <library>boost_serialization ;
|
||||
requirements += <library>gomp ;
|
||||
|
@ -36,7 +36,7 @@ namespace sapt
|
||||
#ifndef SPTR
|
||||
#define SPTR boost::shared_ptr
|
||||
#endif
|
||||
#define iptr boost::intrusive_ptr
|
||||
#define boost_iptr boost::intrusive_ptr
|
||||
#define scoptr boost::scoped_ptr
|
||||
#define rcast reinterpret_cast
|
||||
#endif
|
||||
|
@ -76,7 +76,7 @@ int main(int argc, char* argv[])
|
||||
{
|
||||
typedef vector<PhrasePair<Token> > pplist_t;
|
||||
interpret_args(argc, argv);
|
||||
iptr<mmbitext> Bptr(new mmbitext);
|
||||
boost_iptr<mmbitext> Bptr(new mmbitext);
|
||||
mmbitext& B = *Bptr;// static_cast<mmbitext*>(Bptr.get());
|
||||
B.open(bname, L1, L2);
|
||||
B.V1->setDynamic(true);
|
||||
|
Loading…
Reference in New Issue
Block a user