Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mgiza.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhieuhoang1972 <hieuhoang1972@9a26d1b7-1c8f-445c-8fdd-6576f508279d>2014-04-03 16:57:01 +0400
committerhieuhoang1972 <hieuhoang1972@9a26d1b7-1c8f-445c-8fdd-6576f508279d>2014-04-03 16:57:01 +0400
commitc2f1771fbdda0e8989bfd469075e900d5dfc15cc (patch)
tree0250ff8664f83e595f4e01eafa4a0a86ea5c6be4 /mgizapp
parent578ac57a7269ef82295cad4ef53ad269ef0e31c7 (diff)
compile error on clang
Diffstat (limited to 'mgizapp')
-rwxr-xr-xmgizapp/manual-compile/compile.sh6
-rw-r--r--mgizapp/src/mystl.h9
2 files changed, 8 insertions, 7 deletions
diff --git a/mgizapp/manual-compile/compile.sh b/mgizapp/manual-compile/compile.sh
index c6e002d..ba6b780 100755
--- a/mgizapp/manual-compile/compile.sh
+++ b/mgizapp/manual-compile/compile.sh
@@ -8,9 +8,9 @@ LDFLAGS="-static"
#GCC=clang
#GPP=clang++
-SRC_DIR=/Users/hieu/workspace/mgizapp/mgizapp/src
-BOOST_ROOT=/Users/hieu/workspace/boost/boost_1_55_0
-BOOST_LIBRARYDIR=/Users/hieu/workspace/boost/boost_1_55_0/lib64/
+SRC_DIR=/home/s0565741/workspace/thor/mgizapp-code/mgizapp/src
+BOOST_ROOT=/home/s0565741/workspace/thor/boost_1_54_0
+BOOST_LIBRARYDIR=/home/s0565741/workspace/thor/boost_1_54_0/lib64
BOOST_ROOT=/Users/hieu/workspace/boost/old/boost_1_54_0.old
BOOST_LIBRARYDIR=/Users/hieu/workspace/boost/old/boost_1_54_0.old/lib64/
diff --git a/mgizapp/src/mystl.h b/mgizapp/src/mystl.h
index 29fa778..ae42159 100644
--- a/mgizapp/src/mystl.h
+++ b/mgizapp/src/mystl.h
@@ -5,6 +5,7 @@
#ifndef MY_STL_H_DEFINED
#define MY_STL_H_DEFINED
+#include <vector>
#include <string>
using namespace std;
#ifdef USE_STLPORT
@@ -69,8 +70,8 @@ inline bool prefix(const string&x,const string&y)
/*template<class T>
int lev(const T&s1,const T&s2)
{
- Array2<int,vector<int> > a(s1.size()+1,s2.size()+1,1000);
- Array2<pair<int,int>,vector<pair<int,int> > > back(s1.size()+1,s2.size()+1,pair<int,int>(0,0));
+ Array2<int,std::vector<int> > a(s1.size()+1,s2.size()+1,1000);
+ Array2<pair<int,int>,std::vector<pair<int,int> > > back(s1.size()+1,s2.size()+1,pair<int,int>(0,0));
for(unsigned int i=0;i<=s1.size();i++)
for(unsigned int j=0;j<=s2.size();j++)
{
@@ -316,13 +317,13 @@ void smooth_standard(T*a,T*b,double p)
}
template<class T>
-const T *conv(typename vector<T>::const_iterator i)
+const T *conv(typename std::vector<T>::const_iterator i)
{
return &(*i);
}
#if __GNUC__>2
template<class T>
-T *conv(typename vector<T>::iterator i)
+T *conv(typename std::vector<T>::iterator i)
{
return &(*i);
}