----- 轉寄的郵件 ----
從︰ Fong Po Po <fongpui...@yahoo.com.hk>
收件人︰ HaddowBarry <bhad...@inf.ed.ac.uk>; 田亮 <tianliang0...@yahoo.com.cn>
傳送日期︰ 2011年10月2日 (週日) 5:45 PM
主題︰ error in compling GIZA++
Dear Dr.Barry:
My gcc version is 4.4.3
handsome@ubuntu:/home/sunnymoon/research/giza-pp$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc
--disable-werror --with-arch-32=i486 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
When I compile GIZA++, it shows this error
handsome@ubuntu:/home/sunnymoon/research/giza-pp$ sudo make
make -C GIZA++-v2
make[1]: Entering directory `/home/sunnymoon/research/giza-pp/GIZA++-v2'
mkdir optimized/
g++ -Wall -W -Wno-deprecated -O3 -DNDEBUG -DWORDINDEX_WITH_4_BYTE
-DBINARY_SEARCH_FOR_TTABLE -c Parameter.cpp -o optimized/Parameter.o
In file included from Parameter.h:28,
from Parameter.cpp:23:
Pointer.h:27:20: error: stream.h: No such file or directory
Parameter.cpp:24:21: error: fstream.h: No such file or directory
In file included from Parameter.cpp:23:
Parameter.h: In function ‘unsigned int mConvert(const std::string&, unsigned
int&)’:
Parameter.h:35: error: ‘strcasecmp’ was not declared in this scope
In file included from Parameter.cpp:23:
Parameter.h:36: error: ‘strcasecmp’ was not declared in this scope
Parameter.h: In function ‘int mConvert(const std::string&, int&)’:
Parameter.h:40: error: ‘strcasecmp’ was not declared in this scope
Parameter.h:41: error: ‘strcasecmp’ was not declared in this scope
Parameter.h: In function ‘bool mConvert(const std::string&, bool&)’:
Parameter.h:48: error: ‘strcasecmp’ was not declared in this scope
Parameter.h:49: error: ‘strcasecmp’ was not declared in this scope
Parameter.h: In function ‘short int mConvert(const std::string&, short int&)’:
Parameter.h:53: error: ‘strcasecmp’ was not declared in this scope
Parameter.h:54: error: ‘strcasecmp’ was not declared in this scope
Parameter.h: In function ‘short unsigned int mConvert(const std::string&, short
unsigned int&)’:
Parameter.h:58: error: ‘strcasecmp’ was not declared in this scope
Parameter.h:59: error: ‘strcasecmp’ was not declared in this scope
Parameter.cpp: In function ‘bool writeParameters(std::ofstream&, const ParSet&,
int)’:
Parameter.cpp:48: warning: ignoring return value of ‘char* getcwd(char*,
size_t)’, declared with attribute warn_unused_result
make[1]: *** [optimized/Parameter.o] Error 1
make[1]: Leaving directory `/home/sunnymoon/research/giza-pp/GIZA++-v2'
make: *** [gizapp] Error 2
Why? Can you help me? Thanks!
Best Regards,
Fong Pui Chi
_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support