Boost logo

Boost Users :

Subject: [Boost-users] Too many (11053) warnings- lead to extremely slow compile times
From: Raj Prasan (prasna991_at_[hidden])
Date: 2008-11-20 02:33:30


I get 11053 warnings after I have included boost serialization in my Mixed
project - Native + Managed .NET code..
and the compile time has become 9.5 minutes after this. Previously it was I
think 8-10 times faster...
Warning level is set to 2 only. Default was 3 or 4..

I use VS 2008.. on WinXPsp2

*some example Warnings.*
=====================

Warning 1 warning C4099:
'boost::static_warning_impl<false>::STATIC_WARNING' : type name first seen
using 'struct' now seen using 'class'
f:\GoodWorking\Boost\boost\serialization\export.hpp 135

Warning 3 warning C4835:
'boost::serialization::extended_type_info_typeid<BaseItem> `private: static
boost::serialization::extended_type_info_typeid<BaseItem> & __cdecl
boost::serialization::singleton<boost::serialization::extended_type_info_typeid<BaseItem>
>::get_instance(void)'::`2'::t' : the initializer for exported data will not
be run until managed code is first executed in the host assembly
f:\GoodWorking\Boost\boost\serialization\singleton.hpp 104

*----------------------- > Warning 3 is shown for many other classes which
extend BaseItem* <-------------------

Warning 33 warning C4835: 'instance' : the initializer for exported
data will not be run until managed code is first executed in the host
assembly
f:\Rajavanya\GoodWorking\Boost\boost\serialization\singleton.hpp 121

Warning 47 warning C4835:
'boost::archive::detail::pointer_oserializer<boost::archive::text_oarchive,BaseItem>
`private: static
boost::archive::detail::pointer_oserializer<boost::archive::text_oarchive,BaseItem>
& __cdecl
boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::text_oarchive,BaseItem>
>::get_instance(void)'::`2'::t' : the initializer for exported data will not
be run until managed code is first executed in the host assembly
f:\GoodWorking\Boost\boost\serialization\singleton.hpp 104

Warning 9033 warning C4835:
'boost::serialization::extended_type_info_typeid<std::map<int,BaseItem
*,std::less<int>,std::allocator<std::pair<int const ,BaseItem *> > > >
`private: static
boost::serialization::extended_type_info_typeid<std::map<int,BaseItem
*,std::less<int>,std::allocator<std::pair<int const ,BaseItem *> > > > &
__cdecl
boost::serialization::singleton<boost::serialization::extended_type_info_typeid<std::map<int,BaseItem
*,std::less<int>,std::allocator<std::pair<int const ,BaseItem *> > > >
>::get_instance(void)'::`2'::t' : the initializer for exported data will not
be run until managed code is first executed in the host assembly
f:\GoodWorking\Boost\boost\serialization\singleton.hpp 104

Warning 9136 warning C4835:
'boost::archive::detail::pointer_iserializer<boost::archive::text_iarchive,RCadApp>
`private: static
boost::archive::detail::pointer_iserializer<boost::archive::text_iarchive,RCadApp>
& __cdecl
boost::serialization::singleton<boost::archive::detail::pointer_iserializer<boost::archive::text_iarchive,RCadApp>
>::get_instance(void)'::`2'::t' : the initializer for exported data will not
be run until managed code is first executed in the host assembly
f:\GoodWorking\Boost\boost\serialization\singleton.hpp 104

Warning 11038 warning C4835:
'boost::archive::detail::oserializer<boost::archive::text_oarchive,std::pair<int
const ,BaseItem *> > `private: static
boost::archive::detail::oserializer<boost::archive::text_oarchive,std::pair<int
const ,BaseItem *> > & __cdecl
boost::serialization::singleton<boost::archive::detail::oserializer<boost::archive::text_oarchive,std::pair<int
const ,BaseItem *> > >::get_instance(void)'::`2'::t' : the initializer for
exported data will not be run until managed code is first executed in the
host assembly f:\GoodWorking\Boost\boost\serialization\singleton.hpp
104

Warning 11052 warning C4835:
'boost::archive::detail::pointer_iserializer<boost::archive::text_iarchive,Vector>
`private: static
boost::archive::detail::pointer_iserializer<boost::archive::text_iarchive,Vector>
& __cdecl
boost::serialization::singleton<boost::archive::detail::pointer_iserializer<boost::archive::text_iarchive,Vector>
>::get_instance(void)'::`2'::t' : the initializer for exported data will not
be run until managed code is first executed in the host assembly
f:\GoodWorking\Boost\boost\serialization\singleton.hpp 104

Please give me some suggestions please...

-- 
With best Regards
Rajavanya S
Twitter me @ https://twitter.com/quakeboy
I Blog @ http://www.techtola.com
Call me @ 9916-90-93-92
----------------------------------------------------------------------------------------------
"True love is knowing a person's faults, And loving them even more for
them."


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net