[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] compilation error on mingw
From: |
Stephen Leake |
Subject: |
[Monotone-devel] compilation error on mingw |
Date: |
Mon, 23 Nov 2009 08:30:11 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt) |
With nvm.monotone head (033d74ef283f7bc7c27068ce548687c08cfbbed8
address@hidden 2009-11-20T22:04:15) I'm getting compilation
errors on Mingw (g++.exe (GCC) 3.4.5 (mingw-vista special r3)) (after
a clean start from scratch):
In file included from ../monotone/cmd_netsync.cc:14:
../monotone/automate_ostream_demuxed.hh:24: error: declaration of `_iob' as
array of references
../monotone/automate_ostream_demuxed.hh: In constructor
`basic_automate_streambuf_demuxed<_CharT,
_Traits>::basic_automate_streambuf_demuxed(std::ostream&, std::ostream&,
size_t)':
../monotone/automate_ostream_demuxed.hh:32: error: anachronistic old-style base
class initializer
../monotone/automate_ostream_demuxed.hh:32: error: expected `{' before '(' token
../monotone/automate_ostream_demuxed.hh:32: error: multiple initializations
given for base `std::basic_streambuf<char, std::char_traits<char> >'
../monotone/automate_ostream_demuxed.hh:32: error: no matching function for
call to `std::basic_streambuf<char, std::char_traits<char>
>::basic_streambuf(FILE*)'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/streambuf:769:
note: candidates are: std::basic_streambuf<_CharT,
_Traits>::basic_streambuf(const std::basic_streambuf<_CharT, _Traits>&) [with
_CharT = char, _Traits = std::char_traits<char>]
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/streambuf:434:
note: std::basic_streambuf<_CharT, _Traits>::basic_streambuf()
[with _CharT = char, _Traits = std::char_traits<char>]
../monotone/automate_ostream_demuxed.hh: In member function `void
basic_automate_streambuf_demuxed<_CharT, _Traits>::_M_sync() [with _CharT =
char, _Traits = std::char_traits<char>]':
../monotone/automate_ostream_demuxed.hh:59: instantiated from `int
basic_automate_streambuf_demuxed<_CharT, _Traits>::sync() [with _CharT = char,
_Traits = std::char_traits<char>]'
../monotone/cmd_netsync.cc:781: instantiated from here
../monotone/automate_ostream_demuxed.hh:73: error: conditional expression
between distinct pointer types `std::basic_ostream<char, std::char_traits<char>
>*' and `FILE*' lacks a cast
make[1]: *** [cmd_netsync.o] Error 1
I haven't built mtn in a while, so I don't know which recent commit
broke this. mtn annotate says these lines were committed in
edcdb01d.. by Timothy 2009-10-09
I don't have access to my Debian box at the moment, so I can't check there.
--
-- Stephe
- [Monotone-devel] compilation error on mingw,
Stephen Leake <=