Compilation C++

Pàgina inicial

Reply to this message
Autor: Yves Martin
Data:  
A: guilde
Assumpte: Compilation C++
Bonjour,

Je dois recompiler un code externe annoncé comme testé sur RH4 i386 avec gcc
3.3.

Comme j'ai un RH4 UP5 x64_86 tout neuf, j'ai d'abord tenté avec gcc 3.4.6 et
j'obtiens des erreurs qui semble provenir de la libstdc++ (voir plus loin) ??
Ensuite le compilo ne connait pas "std::string"...

Est-ce qu'il y a une chance que ça fonctionne mieux avec gcc 3.3 ??

Merci d'avance pour votre aide


In file included from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/ios:49,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/istream:45,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/sstream:45,
                 from /opt/envisat/aatsr/pf_aatsr/gp_tools/tools_template.h:6,
                 from /opt/envisat/aatsr/pf_aatsr/gp_tools/assert.h:27,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/cassert:48,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/debug/debug.h:272,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/stl_algobase.h:77,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/char_traits.h:46,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/string:47,
                 from basetype.h:26,
                 from status.h:34,
                 from status.cc:24:
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/ios_base.h:224:
error: field `_M_msg' has incomplete type
In file included from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/streambuf:781,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/ios:50,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/istream:45,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/sstream:45,
                 from /opt/envisat/aatsr/pf_aatsr/gp_tools/tools_template.h:6,
                 from /opt/envisat/aatsr/pf_aatsr/gp_tools/assert.h:27,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/cassert:48,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/debug/debug.h:272,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/stl_algobase.h:77,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/char_traits.h:46,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/string:47,
                 from basetype.h:26,
                 from status.h:34,
                 from status.cc:24:
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/streambuf.tcc:
In member function `virtual std::streamsize std::basic_streambuf<_CharT,
_Traits>::xsgetn(_CharT*, std::streamsize)':
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/streambuf.tcc:54:
error: `min' is not a member of `std'
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/streambuf.tcc:
In member function `virtual std::streamsize std::basic_streambuf<_CharT,
_Traits>::xsputn(const _CharT*, std::streamsize)':
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/streambuf.tcc:88:
error: `min' is not a member of `std'



--
Yves Martin