Hi all, I recently upgraded to Fedora 10, and I also recently upgraded to 64bit hardware.
I'm having difficulty compiling simgear, this is the first time I'm trying to get FG running on 64bit hardware so perhaps I'm missing something obvious. I'm using the CVS version. The error message I'm getting is quite a long one.. (see attachment) It appears to be more a problem with my system than with SG but I am not sure. Any help or ideas would be appreciated! Thanks & Merry Christmas, Daniel Pekelharing
make[3]: Entering directory `/home/daniel/sources/fg/sg/simgear/misc' g++ -DHAVE_CONFIG_H -I. -I../../simgear -I../.. -g -O2 -D_REENTRANT -MT strutils.o -MD -MP -MF .deps/strutils.Tpo -c -o strutils.o strutils.cxx In file included from strutils.cxx:27: strutils.hxx:24: error: expected unqualified-id before ‘<<’ token In file included from /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/string:59, from strutils.hxx:37, from strutils.cxx:27: /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:2161: error: wrong number of template arguments (1, should be 3) /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:109: error: provided for ‘template<class _CharT, class _Traits, class _Alloc> class std::basic_string’ /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:2162: error: wrong number of template arguments (1, should be 3) /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:109: error: provided for ‘template<class _CharT, class _Traits, class _Alloc> class std::basic_string’ /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:2162: error: ‘typename __gnu_cxx::__enable_if<std::__is_char::__value, bool>::__type std::operator==(const int&, const int&)’ must have an argument of class or enumerated type /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:2407: error: wrong number of template arguments (1, should be 3) /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:109: error: provided for ‘template<class _CharT, class _Traits, class _Alloc> class std::basic_string’ /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:2407: error: template-id ‘operator>><>’ for ‘std::basic_istream<char, std::char_traits<char> >& std::operator>>(std::basic_istream<char, std::char_traits<char> >&, int&)’ does not match any template declaration /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:2466: error: wrong number of template arguments (1, should be 3) /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:109: error: provided for ‘template<class _CharT, class _Traits, class _Alloc> class std::basic_string’ /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:2467: error: template-id ‘getline<>’ for ‘std::basic_istream<char, std::char_traits<char> >& std::getline(std::basic_istream<char, std::char_traits<char> >&, int&, char)’ does not match any template declaration /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:2472: error: wrong number of template arguments (1, should be 3) /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:109: error: provided for ‘template<class _CharT, class _Traits, class _Alloc> class std::basic_string’ /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:2473: error: template-id ‘getline<>’ for ‘std::basic_istream<wchar_t, std::char_traits<wchar_t> >& std::getline(std::basic_istream<wchar_t, std::char_traits<wchar_t> >&, int&, wchar_t)’ does not match any template declaration In file included from /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/string:62, from strutils.hxx:37, from strutils.cxx:27: /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:1108: error: wrong number of template arguments (1, should be 3) /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:109: error: provided for ‘template<class _CharT, class _Traits, class _Alloc> class std::basic_string’ /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:1111: error: ‘string’ has not been declared /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:1111: error: template-id ‘operator>><>’ for ‘std::basic_istream<char, std::char_traits<char> >& std::operator>>(std::basic_istream<char, std::char_traits<char> >&, int&)’ does not match any template declaration /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:1114: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:1114: error: template-id ‘operator<< <>’ for ‘std::basic_ostream<char, std::char_traits<char> >& std::operator<<(std::basic_ostream<char, std::char_traits<char> >&, int)’ does not match any template declaration /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:1117: error: ‘string’ has not been declared /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:1117: error: template-id ‘getline<>’ for ‘std::basic_istream<char, std::char_traits<char> >& std::getline(std::basic_istream<char, std::char_traits<char> >&, int&, char)’ does not match any template declaration /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:1120: error: ‘string’ has not been declared /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:1120: error: template-id ‘getline<>’ for ‘std::basic_istream<char, std::char_traits<char> >& std::getline(std::basic_istream<char, std::char_traits<char> >&, int&)’ does not match any template declaration /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:1123: error: wrong number of template arguments (1, should be 3) /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:109: error: provided for ‘template<class _CharT, class _Traits, class _Alloc> class std::basic_string’ /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:1126: error: ‘wstring’ has not been declared /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:1126: error: template-id ‘operator>><>’ for ‘std::basic_istream<wchar_t, std::char_traits<wchar_t> >& std::operator>>(std::basic_istream<wchar_t, std::char_traits<wchar_t> >&, int&)’ does not match any template declaration /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:1129: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:1129: error: template-id ‘operator<< <>’ for ‘std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::operator<<(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, int)’ does not match any template declaration /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:1132: error: ‘wstring’ has not been declared /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:1132: error: template-id ‘getline<>’ for ‘std::basic_istream<wchar_t, std::char_traits<wchar_t> >& std::getline(std::basic_istream<wchar_t, std::char_traits<wchar_t> >&, int&, wchar_t)’ does not match any template declaration /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:1135: error: ‘wstring’ has not been declared /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:1135: error: template-id ‘getline<>’ for ‘std::basic_istream<wchar_t, std::char_traits<wchar_t> >& std::getline(std::basic_istream<wchar_t, std::char_traits<wchar_t> >&, int&)’ does not match any template declaration In file included from strutils.cxx:27: strutils.hxx:43: error: ‘std::string’ has not been declared strutils.hxx:71: error: ‘string’ does not name a type strutils.hxx:72: error: ‘string’ does not name a type strutils.hxx:73: error: ‘string’ does not name a type strutils.hxx:86: error: ‘string’ was not declared in this scope strutils.hxx:86: error: template argument 1 is invalid strutils.hxx:86: error: template argument 2 is invalid strutils.hxx:87: error: expected ‘,’ or ‘...’ before ‘&’ token strutils.hxx:89: error: invalid type in declaration before ‘;’ token strutils.hxx:89: error: ISO C++ forbids declaration of ‘string’ with no type strutils.cxx:34: error: ‘string’ was not declared in this scope strutils.cxx:34: error: template argument 1 is invalid strutils.cxx:34: error: template argument 2 is invalid strutils.cxx:35: error: expected ‘,’ or ‘...’ before ‘&’ token strutils.cxx:35: error: ISO C++ forbids declaration of ‘string’ with no type strutils.cxx: In function ‘int simgear::strutils::split_whitespace(int)’: strutils.cxx:37: error: ‘string’ cannot appear in a constant-expression strutils.cxx:37: error: template argument 1 is invalid strutils.cxx:37: error: template argument 2 is invalid strutils.cxx:37: error: invalid type in declaration before ‘;’ token strutils.cxx:38: error: ‘string’ is not a class or namespace strutils.cxx:38: error: expected `;' before ‘len’ strutils.cxx:39: error: ‘string’ is not a class or namespace strutils.cxx:39: error: expected `;' before ‘i’ strutils.cxx:40: error: ‘string’ is not a class or namespace strutils.cxx:40: error: expected `;' before ‘j’ strutils.cxx:43: error: ‘i’ was not declared in this scope strutils.cxx:43: error: ‘len’ was not declared in this scope strutils.cxx:45: error: ‘str’ was not declared in this scope strutils.cxx:50: error: ‘j’ was not declared in this scope strutils.cxx:52: error: ‘str’ was not declared in this scope strutils.cxx:59: error: request for member ‘push_back’ in ‘result’, which is of non-class type ‘int’ strutils.cxx:59: error: ‘str’ was not declared in this scope strutils.cxx:66: error: ‘maxsplit’ was not declared in this scope strutils.cxx:68: error: request for member ‘push_back’ in ‘result’, which is of non-class type ‘int’ strutils.cxx: At global scope: strutils.cxx:80: error: ‘string’ was not declared in this scope strutils.cxx:80: error: template argument 1 is invalid strutils.cxx:80: error: template argument 2 is invalid strutils.cxx:81: error: expected ‘,’ or ‘...’ before ‘&’ token strutils.cxx:81: error: ISO C++ forbids declaration of ‘string’ with no type strutils.cxx: In function ‘int simgear::strutils::split(int)’: strutils.cxx:83: error: ‘sep’ was not declared in this scope strutils.cxx:84: error: ‘str’ was not declared in this scope strutils.cxx:84: error: ‘maxsplit’ was not declared in this scope strutils.cxx:86: error: ‘string’ cannot appear in a constant-expression strutils.cxx:86: error: template argument 1 is invalid strutils.cxx:86: error: template argument 2 is invalid strutils.cxx:86: error: invalid type in declaration before ‘;’ token strutils.cxx:87: error: ‘sep’ was not declared in this scope strutils.cxx:93: error: ‘str’ was not declared in this scope strutils.cxx:94: error: ‘string’ is not a class or namespace strutils.cxx:94: error: expected `;' before ‘len’ strutils.cxx:95: error: ‘string’ is not a class or namespace strutils.cxx:95: error: expected `;' before ‘i’ strutils.cxx:96: error: ‘string’ is not a class or namespace strutils.cxx:96: error: expected `;' before ‘j’ strutils.cxx:99: error: ‘i’ was not declared in this scope strutils.cxx:99: error: ‘len’ was not declared in this scope strutils.cxx:103: error: request for member ‘push_back’ in ‘result’, which is of non-class type ‘int’ strutils.cxx:103: error: ‘j’ was not declared in this scope strutils.cxx:106: error: ‘maxsplit’ was not declared in this scope strutils.cxx:115: error: request for member ‘push_back’ in ‘result’, which is of non-class type ‘int’ strutils.cxx:115: error: ‘j’ was not declared in this scope strutils.cxx:115: error: ‘len’ was not declared in this scope strutils.cxx: At global scope: strutils.cxx:128: error: ‘string’ does not name a type strutils.cxx:165: error: ‘string’ does not name a type strutils.cxx:171: error: ‘string’ does not name a type strutils.cxx:177: error: ‘string’ does not name a type make[3]: *** [strutils.o] Error 1 make[3]: Leaving directory `/home/daniel/sources/fg/sg/simgear/misc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/daniel/sources/fg/sg/simgear' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/daniel/sources/fg/sg/simgear' make: *** [all-recursive] Error 1 [dan...@hogwarts sg]$
------------------------------------------------------------------------------
_______________________________________________ Flightgear-users mailing list Flightgear-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-users