在编译pcre-7.9的时候出现的错误
以下是make 出现的错误 请高手们解决一下 谢谢!!
gcc -DHAVE_CONFIG_H -I. -O2 -MT pcre_chartables.lo -MD -MP -MF .deps/pcre_chartables.Tpo -c pcre_chartables.c -fPIC -DPIC -o .libs/pcre_chartables.o
gcc -DHAVE_CONFIG_H -I. -O2 -MT pcre_chartables.lo -MD -MP -MF .deps/pcre_chartables.Tpo -c pcre_chartables.c -o pcre_chartables.o >/dev/null 2>&1
mv -f .deps/pcre_chartables.Tpo .deps/pcre_chartables.Plo
/bin/sh ./libtool --tag=CC --mode=link gcc -O2 -version-info 0:1:0 -o libpcre.la -rpath /usr/local/lib pcre_compile.lo pcre_config.lo pcre_dfa_exec.lo pcre_exec.lo pcre_fullinfo.lo pcre_get.lo pcre_globals.lo pcre_info.lo pcre_maketables.lo pcre_newline.lo pcre_ord2utf8.lo pcre_refcount.lo pcre_study.lo pcre_tables.lo pcre_try_flipped.lo pcre_ucd.lo pcre_valid_utf8.lo pcre_version.lo pcre_xclass.lo pcre_chartables.lo
gcc -shared .libs/pcre_compile.o .libs/pcre_config.o .libs/pcre_dfa_exec.o .libs/pcre_exec.o .libs/pcre_fullinfo.o .libs/pcre_get.o .libs/pcre_globals.o .libs/pcre_info.o .libs/pcre_maketables.o .libs/pcre_newline.o .libs/pcre_ord2utf8.o .libs/pcre_refcount.o .libs/pcre_study.o .libs/pcre_tables.o .libs/pcre_try_flipped.o .libs/pcre_ucd.o .libs/pcre_valid_utf8.o .libs/pcre_version.o .libs/pcre_xclass.o .libs/pcre_chartables.o -Wl,-soname -Wl,libpcre.so.0 -o .libs/libpcre.so.0.0.1
(cd .libs && rm -f libpcre.so.0 && ln -s libpcre.so.0.0.1 libpcre.so.0)
(cd .libs && rm -f libpcre.so && ln -s libpcre.so.0.0.1 libpcre.so)
ar cru .libs/libpcre.a pcre_compile.o pcre_config.o pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o pcre_globals.o pcre_info.o pcre_maketables.o pcre_newline.o pcre_ord2utf8.o pcre_refcount.o pcre_study.o pcre_tables.o pcre_try_flipped.o pcre_ucd.o pcre_valid_utf8.o pcre_version.o pcre_xclass.o pcre_chartables.o
ranlib .libs/libpcre.a
creating libpcre.la
(cd .libs && rm -f libpcre.la && ln -s ../libpcre.la libpcre.la)
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -MT pcreposix.lo -MD -MP -MF .deps/pcreposix.Tpo -c -o pcreposix.lo pcreposix.c
gcc -DHAVE_CONFIG_H -I. -O2 -MT pcreposix.lo -MD -MP -MF .deps/pcreposix.Tpo -c pcreposix.c -fPIC -DPIC -o .libs/pcreposix.o
gcc -DHAVE_CONFIG_H -I. -O2 -MT pcreposix.lo -MD -MP -MF .deps/pcreposix.Tpo -c pcreposix.c -o pcreposix.o >/dev/null 2>&1
mv -f .deps/pcreposix.Tpo .deps/pcreposix.Plo
/bin/sh ./libtool --tag=CC --mode=link gcc -O2 -version-info 0:0:0 -o libpcreposix.la -rpath /usr/local/lib pcreposix.lo libpcre.la
gcc -shared .libs/pcreposix.o -Wl,--rpath -Wl,/usr/local/pcre-7.9/.libs -Wl,--rpath -Wl,/usr/local/lib ./.libs/libpcre.so -Wl,-soname -Wl,libpcreposix.so.0 -o .libs/libpcreposix.so.0.0.0
(cd .libs && rm -f libpcreposix.so.0 && ln -s libpcreposix.so.0.0.0 libpcreposix.so.0)
(cd .libs && rm -f libpcreposix.so && ln -s libpcreposix.so.0.0.0 libpcreposix.so)
ar cru .libs/libpcreposix.a pcreposix.o
ranlib .libs/libpcreposix.a
creating libpcreposix.la
(cd .libs && rm -f libpcreposix.la && ln -s ../libpcreposix.la libpcreposix.la)
/bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -O2 -MT pcrecpp.lo -MD -MP -MF .deps/pcrecpp.Tpo -c -o pcrecpp.lo pcrecpp.cc
g++ -DHAVE_CONFIG_H -I. -O2 -MT pcrecpp.lo -MD -MP -MF .deps/pcrecpp.Tpo -c pcrecpp.cc -fPIC -DPIC -o .libs/pcrecpp.o
pcrecpp.cc:42:18: string: 没有那个文件或目录
pcrecpp.cc:43:21: algorithm: 没有那个文件或目录
In file included from pcrecpp.h:335,
from pcrecpp.cc:47:
./pcrecpparg.h:89: error: expected `)' before '*' token
./pcrecpparg.h:89: error: expected `)' before '*' token
In file included from pcrecpp.h:338,
from pcrecpp.cc:47:
./pcre_stringpiece.h:43:56: iosfwd: 没有那个文件或目录
In file included from pcrecpp.h:338,
from pcrecpp.cc:47:
./pcre_stringpiece.h:55: error: `std::string' has not been declared
./pcre_stringpiece.h:75: error: expected `,' or `...' before '&' token
./pcre_stringpiece.h:76: error: ISO C++ forbids declaration of `string' with no type
./pcre_stringpiece.h:140: error: `string' does not name a type
./pcre_stringpiece.h:144: error: `string' has not been declared
./pcre_stringpiece.h:144: error: ISO C++ forbids declaration of `target' with no type
./pcre_stringpiece.h: In constructor `pcrecpp::StringPiece::StringPiece(int)':
./pcre_stringpiece.h:76: error: `str' undeclared (first use this function)
./pcre_stringpiece.h:76: error: (Each undeclared identifier is reported only once for each function it appears in.)
./pcre_stringpiece.h: In member function `void pcrecpp::StringPiece::CopyToString(int*) const':
./pcre_stringpiece.h:145: error: request for member `assign' in `*target', which is of non-class type `int'
./pcre_stringpiece.h: At global scope:
./pcre_stringpiece.h:175: error: expected constructor, destructor, or type conversion before '&' token
./pcre_stringpiece.h:175: error: expected `,' or `;' before '&' token
In file included from pcrecpp.cc:47:
pcrecpp.h:491: error: expected `,' or `...' before '&' token
pcrecpp.h:491: error: ISO C++ forbids declaration of `string' with no type
pcrecpp.h:492: error: expected `,' or `...' before '&' token
pcrecpp.h:492: error: ISO C++ forbids declaration of `string' with no type
pcrecpp.h:492: error: `pcrecpp::RE::RE(int)' and `pcrecpp::RE::RE(int)' cannot be overloaded
pcrecpp.h:524: error: ISO C++ forbids declaration of `string' with no type
pcrecpp.h:524: error: expected `;' before '&' token
pcrecpp.h:528: error: expected `;' before "const"
pcrecpp.h:528: error: ISO C++ forbids declaration of `string' with no type
pcrecpp.h:528: error: expected `;' before '&' token
pcrecpp.h:535: error: expected `;' before "bool"
pcrecpp.h:608: error: `string' has not been declared
pcrecpp.h:608: error: ISO C++ forbids declaration of `str' with no type
pcrecpp.h:611: error: `string' has not been declared
pcrecpp.h:611: error: ISO C++ forbids declaration of `str' with no type
pcrecpp.h:615: error: `string' has not been declared
pcrecpp.h:615: error: ISO C++ forbids declaration of `out' with no type
pcrecpp.h:626: error: `string' does not name a type
pcrecpp.h:660: error: expected `,' or `...' before '&' token
pcrecpp.h:660: error: ISO C++ forbids declaration of `string' with no type
pcrecpp.h:682: error: `string' has not been declared
pcrecpp.h:686: error: ISO C++ forbids declaration of `out' with no type
pcrecpp.h:700: error: `string' does not name a type
pcrecpp.h:704: error: ISO C++ forbids declaration of `string' with no type
pcrecpp.h:704: error: expected `;' before '*' token
pcrecpp.h: In constructor `pcrecpp::RE::RE(int)':
pcrecpp.h:491: error: `pat' undeclared (first use this function)
pcrecpp.h: In constructor `pcrecpp::RE::RE(int)':
pcrecpp.h:492: error: `pat' undeclared (first use this function)
pcrecpp.h:492: error: `option' undeclared (first use this function)
pcrecpp.h: In constructor `pcrecpp::RE::RE(const char*)':
pcrecpp.h:493: error: no matching function for call to `pcrecpp::RE::Init(const char*&, NULL)'
pcrecpp.h:660: note: candidates are: void pcrecpp::RE::Init(int)
pcrecpp.h: In constructor `pcrecpp::RE::RE(const char*, const pcrecpp::RE_Options&)':
pcrecpp.h:494: error: no matching function for call to `pcrecpp::RE::Init(const char*&, const pcrecpp::RE_Options*)'
pcrecpp.h:660: note: candidates are: void pcrecpp::RE::Init(int)
pcrecpp.h: In constructor `pcrecpp::RE::RE(const unsigned char*)':
pcrecpp.h:496: error: no matching function for call to `pcrecpp::RE::Init(const char*, NULL)'
pcrecpp.h:660: note: candidates are: void pcrecpp::RE::Init(int)
pcrecpp.h: In constructor `pcrecpp::RE::RE(const unsigned char*, const pcrecpp::RE_Options&)':
pcrecpp.h:499: error: no matching function for call to `pcrecpp::RE::Init(const char*, const pcrecpp::RE_Options*)'
pcrecpp.h:660: note: candidates are: void pcrecpp::RE::Init(int)
pcrecpp.h: In copy constructor `pcrecpp::RE::RE(const pcrecpp::RE&)':
pcrecpp.h:504: error: 'const class pcrecpp::RE' has no member named 'pattern_'
pcrecpp.h: In member function `const pcrecpp::RE& pcrecpp::RE::operator=(const pcrecpp::RE&)':
pcrecpp.h:513: error: 'const class pcrecpp::RE' has no member named 'pattern_'
pcrecpp.cc: At global scope:
pcrecpp.cc:77: error: `string' does not name a type
pcrecpp.cc:82: error: expected `,' or `...' before '&' token
pcrecpp.cc:82: error: ISO C++ forbids declaration of `string' with no type
pcrecpp.cc: In member function `void pcrecpp::RE::Init(int)':
pcrecpp.cc:83: error: `pattern_' undeclared (first use this function)
pcrecpp.cc:83: error: `pat' undeclared (first use this function)
pcrecpp.cc:84: error: `options' undeclared (first use this function)
pcrecpp.cc:89: error: `error_' undeclared (first use this function)
pcrecpp.cc:89: error: `empty_string' undeclared (first use this function)
pcrecpp.cc: In member function `void pcrecpp::RE::Cleanup()':
pcrecpp.cc:102: error: `error_' undeclared (first use this function)
pcrecpp.cc:102: error: `empty_string' undeclared (first use this function)
pcrecpp.cc: In member function `pcre* pcrecpp::RE::Compile(pcrecpp::RE::Anchor)':
pcrecpp.cc:132: error: `pattern_' undeclared (first use this function)
pcrecpp.cc:137: error: `string' undeclared (first use this function)
pcrecpp.cc:137: error: expected `;' before "wrapped"
pcrecpp.cc:138: error: `wrapped' undeclared (first use this function)
pcrecpp.cc:144: error: `error_' undeclared (first use this function)
pcrecpp.cc:144: error: `empty_string' undeclared (first use this function)
pcrecpp.cc:144: error: `string' has not been declared
pcrecpp.cc: At global scope:
pcrecpp.cc:332: error: `string' has not been declared
pcrecpp.cc:332: error: ISO C++ forbids declaration of `str' with no type
pcrecpp.cc: In member function `bool pcrecpp::RE::Replace(const pcrecpp::StringPiece&, int*) const':
pcrecpp.cc:338: error: `string' undeclared (first use this function)
pcrecpp.cc:338: error: expected `;' before "s"
pcrecpp.cc:339: error: `s' undeclared (first use this function)
pcrecpp.cc:344: error: request for member `replace' in `*str', which is of non-class type `int'
pcrecpp.cc: At global scope:
pcrecpp.cc:381: error: `string' has not been declared
pcrecpp.cc:381: error: ISO C++ forbids declaration of `str' with no type
pcrecpp.cc: In member function `int pcrecpp::RE::GlobalReplace(const pcrecpp::StringPiece&, int*) const':
pcrecpp.cc:384: error: `string' undeclared (first use this function)
pcrecpp.cc:384: error: expected `;' before "out"
pcrecpp.cc:388: error: request for member `length' in `*str', which is of non-class type `int'
pcrecpp.cc:404: error: request for member `length' in `*str', which is of non-class type `int'
pcrecpp.cc:405: error: invalid types `int[int]' for array subscript
pcrecpp.cc:405: error: invalid types `int[int]' for array subscript
pcrecpp.cc:420: error: request for member `length' in `*str', which is of non-class type `int'
pcrecpp.cc:421: error: `out' undeclared (first use this function)
pcrecpp.cc:435: error: request for member `length' in `*str', which is of non-class type `int'
pcrecpp.cc:436: error: request for member `length' in `*str', which is of non-class type `int'
pcrecpp.cc:437: error: `swap' undeclared (first use this function)
pcrecpp.cc: At global scope:
pcrecpp.cc:443: error: `string' has not been declared
pcrecpp.cc:443: error: ISO C++ forbids declaration of `out' with no type
pcrecpp.cc: In member function `bool pcrecpp::RE::Extract(const pcrecpp::StringPiece&, const pcrecpp::StringPiece&, int*) const':
pcrecpp.cc:448: error: request for member `erase' in `*out', which is of non-class type `int'
pcrecpp.cc: At global scope:
pcrecpp.cc:452: error: `string' does not name a type
pcrecpp.cc:590: error: `bool pcrecpp::RE::Rewrite' is not a static member of `class pcrecpp::RE'
pcrecpp.cc:590: error: `string' was not declared in this scope
pcrecpp.cc:590: error: `out' was not declared in this scope
pcrecpp.cc:590: error: expected primary-expression before "const"
pcrecpp.cc:591: error: expected primary-expression before "const"
pcrecpp.cc:591: error: expected primary-expression before "int"
pcrecpp.cc:591: error: expected primary-expression before "int"
pcrecpp.cc:591: error: initializer expression list treated as compound expression
pcrecpp.cc:591: error: expected `,' or `;' before "const"
pcrecpp.cc: In static member function `static bool pcrecpp::Arg::parse_string(const char*, int, void*)':
pcrecpp.cc:644: error: `string' has not been declared
pcrecpp.cc:644: error: expected `>' before '*' token
pcrecpp.cc:644: error: expected `(' before '*' token
pcrecpp.cc:644: error: expected primary-expression before '>' token
pcrecpp.cc:644: error: `void*' is not a pointer-to-object type
pcrecpp.cc:644: error: expected `)' before ';' token
make[1]: *** [pcrecpp.lo] 错误 1
make[1]: Leaving directory `/usr/local/pcre-7.9'
make: *** [all] 错误 2
zhubing618 于 2009-08-27 17:05:19发表:
我先./configure这没有错误,就是make 的时候出现的问题
LinuxSpace 于 2009-08-26 15:37:45发表:
会不会是没
./configure