On Sun, 31 Mar 2002 19:52:21 +0200 (CEST) Alexander Leidinger 
<[EMAIL PROTECTED]> wrote:

> On 31 M�r, I wrote:
> 
> >>> "/usr/include/stdlib.h", line 57: error: invalid combination of type specifiers
> >>>   typedef       _BSD_WCHAR_T_   wchar_t;
> >> 
> >> This seems to be a problem with the wchar_t being intrinsic,
> >> and defined anyway for the compiler.
> > 
> > So we just have to "#if !defined(__ICC)" it? Hmm, I have to test this,
> > perhaps tomorrow.
> 
> I had time to do it now, and yes, this fixes theses errors
> (http://www.leidinger.net/FreeBSD/icc.src:include.diff), but there are
> other errors, which seem to be a result of an incomplete wchar
> implementation...

that's right. but as terry said, it seems to be a bad idea to use some
headers that don't fit the libs.
i tried to patch the headers coming with 4.4-S and lang/gcc30 (because
the one from the base system doesn't provide a proper c++ stl
implementation)

i've managed to fix several errors but now i'm hanging at this message,
and i don't really know how to proceed:

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>]" 

$ { echo '#include <iostream>'; echo '#include <string>'; echo
 'std::string test;'; } > e.cc

my first tries for the patched include files can be found here:
<http://corecode.ath.cx/~corecode/stuff/icc-patched-includes-0.1.tgz>

just extract and set this include dir before any other, (see above
command line).

[snipsnap error msgs] 
> > (I'm waiting a little bit to see if I need to do something for the C++
> > problem).
> 
> I think this is not a problem which should get solved in the port, so I
> commit the new portrevision soon.

actually i think this should be saved in the port ;] but this will take
some time until there is a proper fix, so there is no real reason to
hold back this one current patch (not the one for the headers).

cheerz
  simon


-- 
/"\   http://corecode.ath.cx/
\ /
 \     ASCII Ribbon Campaign
/ \  Against HTML Mail and News

Attachment: msg33216/pgp00000.pgp
Description: PGP signature

Reply via email to