On Sun, 31 Mar 2002 14:01:00 -0800 Terry Lambert <[EMAIL PROTECTED]> wrote:
> Simon 'corecode' Schubert wrote: > > icc -I./include -I/usr/include -I/usr/local/lib/gcc-lib/i386-portbld-freebsd5.0/ > > 3.0.4/include/g++ -I /usr/local/lib/gcc-lib/i386-portbld-freebsd5.0/3.0.4/inclu > > de/g++/i386-portbld-freebsd5.0 -c e.cc > > e.cc: > > "/usr/local/lib/gcc-lib/i386-portbld-freebsd5.0/3.0.4/include/g++/bits/basic_str > > ing.h", line 860: error: no instance of constructor "std::basic_string<_CharT, _ > > Traits, _Alloc>::_Alloc_hider::_Alloc_hider [with _CharT=char, _Traits=std::char > > _traits<char>, _Alloc=std::allocator<char>]" matches the argument list > > argument types are: (char *, std::allocator<char>) > > : _M_dataplus(_S_empty_rep()._M_refcopy(), _Alloc()) { } > > ^ > > detected during instantiation of "std::basic_string<_CharT, _Traits, _ > > Alloc>::basic_string() [with _CharT=char, _Traits=std::char_traits<char>, _Alloc > > =std::allocator<char>]" > > > OK, this one is evil. > > There's code that assumes limk order here, and it seems that > the library is at fault, or the order in which the static > base class declarations are instantiated. > > Jeremey Allison and I had the same problem with ACAP under g++, > when we were the first people to get it to compile, link, and > run. Doing this required multiple fixes: [...] > > My main recommendation here is that the Moscow code is much > better at this, since it has been pounded upon more than any > other code in the same ecological niche, so using it instead > is probably the right thing to do. > > Alternately, you could ensure ordering... by reordering the source > code. This seems like a poor idea, but it what Linux did implicitly, > I think. 8-(. first of all i'm taking this as an aprils fool (no offence if it was none) ;] and secondly i believe these templates don't get linked (all code within the .h) so we should go another approach. (sorry, i'm not very creative, including aprils fools) cheerz simon -- /"\ http://corecode.ath.cx/ \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News
msg33223/pgp00000.pgp
Description: PGP signature