[zypp-devel] compilation failure with gcc 4.2.0
![](https://seccdn.libravatar.org/avatar/926abfa8eb8dab66c00070f582fc2b84.jpg?s=120&d=mm&r=g)
Hi, has anyone looked at this compilation failure of libzypp with gcc 4.2.0 (autobuild Beta) yet? /usr/include/c++/4.2.0/bits/basic_string.h: In function 'std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]': /usr/src/packages/BUILD/libzypp-3.0.0/zypp/solver/detail/Pending.cc:60: instantiated from here /usr/include/c++/4.2.0/bits/basic_string.h:2403: error: invalid use of incomplete type 'struct std::basic_ostream<char, std::char_traits<char> >' /usr/include/c++/4.2.0/iosfwd:64: error: declaration of 'struct std::basic_ostream<char, std::char_traits<char> >' make[2]: *** [zypp/CMakeFiles/zypp.dir/solver/detail/Pending.o] Error 1 It seems that it is enough to add #include <iostream> in Pending.cc as the <iosfwd> in Pending.h is not enough. -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (1)
-
Martin Vidner