2.36 make won't at /lib/display.cpp

Help
2001-08-08
2001-08-08
  • Robin Burke

    Robin Burke - 2001-08-08

    I'm encountering a lot of errors compiling the files in lib. I managed to fix my problems with text_t and cfgread by setting GSDL_USE_STL_H and GSDL_USE_ALGO_H. But now I'm stuck.

    gmake[1]: Entering directory `/usr/local/gsdl/lib'
    c++ -c -O2 -DHAVE_CONFIG_H -I../packages/mg/lib -I.. display.cpp
    display.cpp: In function `short unsigned int my_uni_get(std::ifstream&, int&,
       int&, int&)':
    display.cpp:695: no matching function for call to `std::basic_ifstream<char,
       std::char_traits<char> >::get(unsigned char&)'
    /usr/local/include/g++-v3/bits/istream.tcc:471: candidates are: typename
       _Traits::int_type std::basic_istream<_CharT, _Traits>::get() [with _CharT =
       char, _Traits = std::char_traits<char>]
    /usr/local/include/g++-v3/bits/istream.tcc:503:                
       std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
       _Traits>::get(_CharT&) [with _CharT = char, _Traits =
       std::char_traits<char>]
    /usr/local/include/g++-v3/bits/istream.tcc:537:                
       std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
       _Traits>::get(_CharT*, int, _CharT) [with _CharT = char, _Traits =
       std::char_traits<char>]
    /usr/local/include/g++-v3/bits/std_istream.h:157:                
       std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
       _Traits>::get(_CharT*, int) [with _CharT = char, _Traits =
       std::char_traits<char>]
    /usr/local/include/g++-v3/bits/istream.tcc:583:                
       std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
       _Traits>::get(std::basic_streambuf<_CharT, _Traits>&, _CharT) [with _CharT =
       char, _Traits = std::char_traits<char>]
    /usr/local/include/g++-v3/bits/std_istream.h:164:                
       std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
       _Traits>::get(std::basic_streambuf<_CharT, _Traits>&) [with _CharT = char,
       _Traits = std::char_traits<char>]

    I'm compiling on Solaris with GCC. There seems to be some library incompatibility. Any ideas?

     
    • Anonymous - 2001-08-08

      Greenstone does not currently compile with the newest version of gcc. (Ie gcc-3, or the developmental gcc-2.96).

      It was mostly issues with the Standard Template Library, but there were also other problems with backward-compatibility (eg filedesc stuff from C++) that need to be resolved.

      Try using one of the gcc-2.95 or egcs 2.91 versions.

      John McPherson.

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks