Boost logo

Boost :

From: Alexey Nikitin (reductor_at_[hidden])
Date: 2003-11-03 13:53:56


"Robert Ramey" <ramey_at_[hidden]> ???????/???????? ? ???????? ?????????:
news:01C3A0A8.E01B9600_at_226-146.adsl2.netlojix.net...
> I have just uploaded Draft #13 of the serialization library to the
> files section.
>

I try to build serialization library with VC7.1 and take next errors:
== from bjam.log ================================
...[skiped messages]...
vc-C++
..\..\..\bin\boost\libs\serialization\build\libboost_serialization.lib\vc7.1
\debug\runtime-link-static\threading-multi\binary_iarchive.obj
binary_iarchive.cpp
C:\Alnik\heap\boost\boost-dev\boost\mpl\greater.hpp(43) : error C2975: 'C_'
: invalid template argument for 'boost::mpl::bool_', compile-time
evaluatable constant expression expected
        C:\Alnik\heap\boost\boost-dev\boost\mpl\bool.hpp(26) : see
declaration of 'C_'

C:\Alnik\heap\boost\boost-dev\boost\serialization\iserializer.hpp(186) : see
reference to class template instantiation 'boost::mpl::greater<T1,T2>' being
compiled
        with
        [
            T1=boost::serialization::implementation_level<size_t>,
            T2=boost::mpl::int_<0>
        ]

C:\Alnik\heap\boost\boost-dev\boost\serialization\iserializer.hpp(185) :
while compiling class-template member function 'void
boost::serialization::detail::load_non_pointer_type<Archive,T>::invoke(Archi
ve &,T &)'
        with
        [
            Archive=boost::archive::basic_binary_iarchive<std::istream>,
            T=size_t
        ]

C:\Alnik\heap\boost\boost-dev\boost\serialization\iserializer.hpp(342) : see
reference to class template instantiation
'boost::serialization::detail::load_non_pointer_type<Archive,T>' being
compiled
        with
        [
            Archive=boost::archive::basic_binary_iarchive<std::istream>,
            T=size_t
        ]

C:\Alnik\heap\boost\boost-dev\boost\archive\basic_binary_iarchive.hpp(63) :
see reference to function template instantiation 'void
boost::serialization::load<boost::archive::basic_binary_iarchive<IStream>,T>
(Archive &,T &)' being compiled
        with
        [
            IStream=std::istream,
            T=size_t,
            Archive=boost::archive::basic_binary_iarchive<std::istream>
        ]

C:\Alnik\heap\boost\boost-dev\boost\archive\basic_binary_iarchive.hpp(131) :
see reference to function template instantiation 'void
boost::archive::basic_binary_iarchive<IStream>::load_override<T>(T &,long)'
being compiled
        with
        [
            IStream=std::istream,
            T=size_t
        ]
        ..\..\..\libs\serialization\build\../src\binary_iarchive.cpp(28) :
see reference to function template instantiation
...[skiped many messages]...
    CALL "C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\bin\VCVARS32.BAT" >nul
    "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\bin\cl"
 /Zm800 -nologo -GX -c /Z7 /Od /Ob0 /GX /GR /MTd /Op
/Zc:wchar_t,forScope -I"..\..\..\bin\boost\libs\serialization\build" -I"C:\
Alnik\heap\boost\boost-dev" -I"C:\Alnik\heap\boost\boost-dev" -Fo"..\..\.
.\bin\boost\libs\serialization\build\libboost_serialization.lib\vc7.1\debug\
runtime-link-static\threading-multi\binary_iarchive.obj" -Tp"..\..\..\libs\
serialization\build\../src/binary_iarchive.cpp"

...failed vc-C++
..\..\..\bin\boost\libs\serialization\build\libboost_serialization.lib\vc7.1
\debug\runtime-link-static\threading-multi\binary_iarchive.obj...
...
== end bjam.log ================================

This error may be eliminated with define
BOOST_NO_INCLASS_MEMBER_INITIALIZATION which defined for VC7.0 but not
defined for VC7.1. Question for [config]: is this true?

Next compile error:
== from bjam.log ================================
...
vc-C++
..\..\..\bin\boost\libs\serialization\build\libboost_serialization.lib\vc7.1
\debug\runtime-link-static\threading-multi\xml_grammar.obj
xml_grammar.cpp
c:\Alnik\heap\boost\boost-dev\libs\serialization\src\basic_xml_grammar.ipp(8
4) : warning C4346: 'boost::archive::basic_xml_grammar<IStream>::CharType' :
dependent name is not a type
        prefix with 'typename' to indicate a type
c:\Alnik\heap\boost\boost-dev\libs\serialization\src\basic_xml_grammar.ipp(8
4) : error C2061: syntax error : identifier 'CharType'
c:\Alnik\heap\boost\boost-dev\libs\serialization\src\basic_xml_grammar.ipp(1
28) : error C2244: 'boost::archive::basic_xml_grammar<IStream>::my_parse' :
unable to match function definition to an existing declaration

c:\Alnik\heap\boost\boost-dev\libs\serialization\src\basic_xml_grammar.hpp(1
31) : see declaration of
'boost::archive::basic_xml_grammar<IStream>::my_parse'
        definition
        'bool boost::archive::basic_xml_grammar<IStream>::my_parse(const
boost::archive::basic_xml_grammar<IStream>::rule_t &)'
        existing declarations
        'bool boost::archive::basic_xml_grammar<IStream>::my_parse(const
boost::archive::basic_xml_grammar<IStream>::rule_t &,const
boost::archive::basic_xml_grammar<IStream>::CharType)'

    CALL "C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\bin\VCVARS32.BAT" >nul
    "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\bin\cl"
 /Zm800 -nologo -GX -c /Z7 /Od /Ob0 /GX /GR /MTd /Op
/Zc:wchar_t,forScope -I"..\..\..\bin\boost\libs\serialization\build" -I"C:\
Alnik\heap\boost\boost-dev" -I"C:\Alnik\heap\boost\boost-dev" -Fo"..\..\.
.\bin\boost\libs\serialization\build\libboost_serialization.lib\vc7.1\debug\
runtime-link-static\threading-multi\xml_grammar.obj" -Tp"..\..\..\libs\seri
alization\build\../src/xml_grammar.cpp"

...failed vc-C++
..\..\..\bin\boost\libs\serialization\build\libboost_serialization.lib\vc7.1
\debug\runtime-link-static\threading-multi\xml_grammar.obj...
...
== end bjam.log ================================

In file basic_xml_grammar.ipp in line 84 need add typename keyword before
parameter type.

Next error happen over lack of class boost::is_abstract_class in file
is_abstract.hpp (in #12 it was in boost-dev/boost/type_traits directory),
now there is class boost::is_abstract only:

== from bjam.log ================================
...
vc-C++
..\..\..\bin\boost\libs\serialization\test\test_is_abstract.test\vc7.1\debug
\runtime-link-static\threading-multi\test_is_abstract.obj
test_is_abstract.cpp
..\..\..\libs\serialization\test\test_is_abstract.cpp(21) : error C2039:
'is_abstract_class' : is not a member of 'boost'
..\..\..\libs\serialization\test\test_is_abstract.cpp(21) : error C2065:
'is_abstract_class' : undeclared identifier
..\..\..\libs\serialization\test\test_is_abstract.cpp(21) : error C2275: 'A'
: illegal use of this type as an expression
        ..\..\..\libs\serialization\test\test_is_abstract.cpp(14) : see
declaration of 'A'
..\..\..\libs\serialization\test\test_is_abstract.cpp(21) : error C2039:
'value' : is not a member of 'operator``global namespace'''
..\..\..\libs\serialization\test\test_is_abstract.cpp(21) : error C2065:
'value' : undeclared identifier
..\..\..\libs\serialization\test\test_is_abstract.cpp(22) : error C2039:
'is_abstract_class' : is not a member of 'boost'
..\..\..\libs\serialization\test\test_is_abstract.cpp(22) : error C2275: 'B'
: illegal use of this type as an expression
        ..\..\..\libs\serialization\test\test_is_abstract.cpp(16) : see
declaration of 'B'
..\..\..\libs\serialization\test\test_is_abstract.cpp(22) : error C3861:
'is_abstract_class': identifier not found, even with argument-dependent
lookup
..\..\..\libs\serialization\test\test_is_abstract.cpp(23) : error C2039:
'is_abstract_class' : is not a member of 'boost'
..\..\..\libs\serialization\test\test_is_abstract.cpp(23) : error C2062:
type 'int' unexpected
..\..\..\libs\serialization\test\test_is_abstract.cpp(25) : error C2039:
'is_abstract_class' : is not a member of 'boost'
..\..\..\libs\serialization\test\test_is_abstract.cpp(25) : error C2062:
type 'int' unexpected
..\..\..\libs\serialization\test\test_is_abstract.cpp(26) : error C2039:
'is_abstract_class' : is not a member of 'boost'
..\..\..\libs\serialization\test\test_is_abstract.cpp(26) : error C2062:
type 'void' unexpected
..\..\..\libs\serialization\test\test_is_abstract.cpp(23) : error C3861:
'is_abstract_class': identifier not found, even with argument-dependent
lookup
..\..\..\libs\serialization\test\test_is_abstract.cpp(25) : error C3861:
'is_abstract_class': identifier not found, even with argument-dependent
lookup
..\..\..\libs\serialization\test\test_is_abstract.cpp(26) : error C3861:
'is_abstract_class': identifier not found, even with argument-dependent
lookup

    CALL "C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\bin\VCVARS32.BAT" >nul
    "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\bin\cl"
 /Zm1000 -nologo -GX -c /Z7 /Od /Ob0 /GX /GR /MTd /Op
/Zc:wchar_t,forScope -I"..\..\..\bin\boost\libs\serialization\test" -I"C:\
Alnik\heap\boost\boost-dev" -Fo"..\..\..\bin\boost\libs\serialization\test
\test_is_abstract.test\vc7.1\debug\runtime-link-static\threading-multi\test_
is_abstract.obj" -Tp"..\..\..\libs\serialization\test\test_is_abstract.cpp"

...failed vc-C++
..\..\..\bin\boost\libs\serialization\test\test_is_abstract.test\vc7.1\debug
\runtime-link-static\threading-multi\test_is_abstract.obj...
...
== end bjam.log =================================


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk