stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Liviu Nicoara <nico...@roguewave.com>
Subject string streams related failure w/ icl 8.1 on win2k
Date Fri, 09 Dec 2005 17:25:30 GMT
Martin,

The following test case, obtained from reducing a Tools translation
unit, fails only with our stdlib (icl 8.1 on win2k, 12d builds):

$ cat t.cpp

#include <sstream>

struct A : public std::iostream
{
    A () : std::iostream (0) { }
};

#include <strstream>

int main ()
{
    std::stringstream ss;
    ss << int (0);

    return 0;
}

and yields:

icl  -D_RWCONFIG=12d -I.\..\..\..\../include
-I.\..\..\..\../include/ansi -I.\..\..\..\.. -I.\..\..\..\.. -I.. -I.
-nologo -GX -MD -O2  -c ..\t.cpp
t.cpp

Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

        link  -nologo /NODEFAULTLIB:msvcprt /LIBPATH:.\..\..\..\..\lib
/OUT:t.exe  t.obj  tlt12d.lib ftp12d.lib thread12d.lib itc12d.lib
functor_list12d.lib internet12d.lib functor12d.lib pointer12d.lib
sync12d.lib threxcept12d.lib trace12d.lib network12d.lib ws2_32.lib
tls12d.lib std12d.lib user32.lib
t.obj : error LNK2019: unresolved external symbol "const
std::basic_iostream<char,struct std::char_traits<char> >::`vftable'"
(??_7?$basic_iostream@DU?$char_traits@D@std@@@std@@6B@) referenced in
function _main
t.obj : error LNK2019: unresolved external symbol "const
std::basic_iostream<char,struct std::char_traits<char> >::`vbtable'{for
`std::basic_istream<char,struct std::char_traits<char> >'}"
(??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@)
referenced in function _main
t.obj : error LNK2019: unresolved external symbol "const
std::basic_iostream<char,struct std::char_traits<char> >::`vbtable'{for
`std::basic_ostream<char,struct std::char_traits<char> >'}"
(??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@)
referenced in function _main
t.exe : fatal error LNK1120: 3 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'

Liviu


Mime
View raw message