Mailinglist Archive: zypp-devel (43 mails)
| < Previous | Next > |
[zypp-devel] compilation failure with gcc 4.2.0
- From: Martin Vidner <mvidner@xxxxxxx>
- Date: Tue, 3 Apr 2007 10:53:12 +0200
- Message-id: <20070403085311.GA16850@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |