|
比如安装fish-0.1.1.tar.gz, ./configure通过,但是make就出现一堆问题:
#make
make all-recursive
make[1]: Entering directory `/home/yuy2/fish-0.1.1'
Making all in fish
make[2]: Entering directory `/home/yuy2/fish-0.1.1/fish'
Making all in docs
make[3]: Entering directory `/home/yuy2/fish-0.1.1/fish/docs'
Making all in en
make[4]: Entering directory `/home/yuy2/fish-0.1.1/fish/docs/en'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/yuy2/fish-0.1.1/fish/docs/en'
make[4]: Entering directory `/home/yuy2/fish-0.1.1/fish/docs'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/yuy2/fish-0.1.1/fish/docs'
make[3]: Leaving directory `/home/yuy2/fish-0.1.1/fish/docs'
make[3]: Entering directory `/home/yuy2/fish-0.1.1/fish'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/rpm -O2 -fno-exceptions -fno
-rtti -fno-check-new -c versionstring.cpp
In file included from versionstring.cpp:19:
versionstring.h:27: error: expected class-name before '{' token
versionstring.h:31: error: ISO C++ forbids declaration of `string' with no type
versionstring.h:32: error: ISO C++ forbids declaration of `string' with no type
versionstring.h:32: error: ISO C++ forbids declaration of `string' with no type
versionstring.cpp: In constructor `VersionString::VersionString()':
versionstring.cpp:31: error: class `VersionString' does not have any field named
`string'
versionstring.cpp: In constructor `VersionString::VersionString(const char*)':
versionstring.cpp:43: error: class `VersionString' does not have any field named
`string'
versionstring.cpp: At global scope:
versionstring.cpp:55: error: expected `,' or `...' before "initializer"
versionstring.cpp:55: error: ISO C++ forbids declaration of `string' with no typ
e
versionstring.cpp: In constructor `VersionString::VersionString(int)':
versionstring.cpp:55: error: class `VersionString' does not have any field named
`string'
versionstring.cpp:55: error: `initializer' undeclared (first use this function)
versionstring.cpp:55: error: (Each undeclared identifier is reported only once f
or each function it appears in.)
versionstring.cpp: At global scope:
versionstring.cpp:67: error: expected `,' or `...' before "version"
versionstring.cpp:67: error: ISO C++ forbids declaration of `string' with no typ
e
versionstring.cpp:67: error: redefinition of `VersionString::VersionString(int)'
versionstring.cpp:55: error: `VersionString::VersionString(int)' previously defi
ned here
versionstring.cpp: In constructor `VersionString::VersionString(int)':
versionstring.cpp:67: error: class `VersionString' does not have any field named
`string'
versionstring.cpp:67: error: `version' undeclared (first use this function)
versionstring.cpp:67: error: `release' undeclared (first use this function)
versionstring.cpp: In member function `int16 VersionString::compareVersionString
s(const VersionString&, const VersionString&) const':
versionstring.cpp:176: error: `string' undeclared (first use this function)
versionstring.cpp:176: error: expected `;' before "epochString1"
versionstring.cpp:177: error: expected `;' before "versionString1"
versionstring.cpp:178: error: expected `;' before "releaseString1"
versionstring.cpp:184: error: 'const class VersionString' has no member named 'l
ength'
versionstring.cpp:186: error: no match for 'operator[]' in 'version1'
versionstring.cpp:194: error: `epochString1' undeclared (first use this function
)
versionstring.cpp:194: error: 'const class VersionString' has no member named 's
ubstr'
versionstring.cpp:197: error: 'const class VersionString' has no member named 'l
ength'
versionstring.cpp:199: error: no match for 'operator[]' in 'version1[j]'
versionstring.cpp:205: error: `versionString1' undeclared (first use this functi
on)
versionstring.cpp:205: error: 'const class VersionString' has no member named 's
ubstr'
versionstring.cpp:207: error: 'const class VersionString' has no member named 'l
ength'
versionstring.cpp:209: error: `releaseString1' undeclared (first use this functi
on)
versionstring.cpp:209: error: 'const class VersionString' has no member named 's
ubstr'
versionstring.cpp:209: error: 'const class VersionString' has no member named 'l
ength'
versionstring.cpp:212: error: 'const class VersionString' has no member named 'l
ength'
versionstring.cpp:214: error: no match for 'operator[]' in 'version2'
versionstring.cpp:222: error: `epochString2' undeclared (first use this function
)
versionstring.cpp:222: error: 'const class VersionString' has no member named 's
ubstr'
versionstring.cpp:225: error: 'const class VersionString' has no member named 'length'
versionstring.cpp:227: error: no match for 'operator[]' in 'version2[j]'
versionstring.cpp:233: error: `versionString2' undeclared (first use this function)
versionstring.cpp:233: error: 'const class VersionString' has no member named 'substr'
versionstring.cpp:235: error: 'const class VersionString' has no member named 'length'
versionstring.cpp:237: error: `releaseString2' undeclared (first use this function)
versionstring.cpp:237: error: 'const class VersionString' has no member named 'substr'
versionstring.cpp:237: error: 'const class VersionString' has no member named 'length'
make[3]: *** [versionstring.o] 错误 1
make[3]: Leaving directory `/home/yuy2/fish-0.1.1/fish'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/home/yuy2/fish-0.1.1/fish'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/yuy2/fish-0.1.1'
make: *** [all-recursive-am] 错误 2 |
|