Boost logo

Boost Users :

From: Barnali (yg-boost-users_at_[hidden])
Date: 2002-07-18 22:57:06


I could compile it with Intel C++ compiler, with a patch applied to
pool_allocator class of boost library.

There were 4 errors due to the following problem:
public method _Charalloc is absent in pool_allocator class of Boost where as
it is present in allocator class of STL
You may have to compare the code of pool_allocator class of Boost and STL
and make necessary modification in the pool_allocator class. I am reporting
this problem to boost developer mailing list also.

This particular error exists for Windows2000(MS Visual C++ 6.0) compilation
also.

For the other errors that are coming with Windows2000(MS Visual C++ 6.0), I
will be able to comment soon - still investigating the same.

Regards
Barnali

"baruche2000" <baruche2000_at_[hidden]> wrote in message
news:agenh8+28jv_at_eGroups.com...
> Hi.
> Compiling "test_pool_alloc.cpp" on Windows2000(MS Visual C++ 6.0)I
> got a number of warnings and errors:
> Help me please to resolve these problems ( I want to use Boost in our
> Windows & VxWorks project)
> Regards.
> Baruch.
>
> Compiling...
> test_pool_alloc.cpp
> c:\program files\microsoft visual studio\vc98\include\list(386) :
> error C2039: '_Charalloc' : is not a member
> of 'fast_pool_allocator<struct tester,struct
> boost::default_user_allocator_new_delete,class
> boost::details::pool::null_mutex,32>'
> c:\program files\microsoft visual studio\vc98\include\list
> (386) : while compiling class-template member function 'struct
> std::list<struct tester,class boost::fast_pool_allocator<struct
> tester,struct boost::default_user_allocator_new_delete,c
> lass boost::details::pool::null_mutex,32> >::_Node *__thiscall
> std::list<struct tester,class boost::fast_pool_allocator<struct
> tester,struct boost::default_user_allocator_new_delete,class
> boost::details::pool::null_mutex,32> >::_Buynode(struct std::
> list<struct tester,class boost::fast_pool_allocator<struct
> tester,struct boost::default_user_allocator_new_delete,class
> boost::details::pool::null_mutex,32> >::_Node *,struct
> std::list<struct tester,class boost::fast_pool_allocator<struct
> tester,str
> uct boost::default_user_allocator_new_delete,class
> boost::details::pool::null_mutex,32> >::_Node *)'
> Error executing cl.exe.
>
> test_pool_alloc.obj - 1 error(s), 0 warning(s)
> /////////////////////////////////////////////////////////////
> Compiling... - Withot list and dequeue testing
> test_pool_alloc.cpp
> c:\boost\boost_1_28_0\boost\pool\pool.hpp(267) : warning
> C4800: 'unsigned int' : forcing value to bool 'true' or 'false'
> (performance warning)
> c:\boost\boost_1_28_0\boost\pool\pool.hpp(263) : while
> compiling class-template member function 'void __thiscall
> boost::pool<struct
> boost::default_user_allocator_new_delete>::ordered_free(void
> *const ,const unsigned int)'
> c:\boost\boost_1_28_0\boost\pool\pool.hpp(492) : warning
> C4800: 'unsigned int' : forcing value to bool 'true' or 'false'
> (performance warning)
> c:\boost\boost_1_28_0\boost\pool\simple_segregated_storage.hpp
> (70) : while compiling class-template member function 'void
> *__thiscall boost::pool<struct
> boost::default_user_allocator_new_delete>::ordered_malloc(unsigned
> int)'
> c:\boost\boost_1_28_0\boost\pool\simple_segregated_storage.hpp(70) :
> error C2248: 'object_creator' : cannot access private struct declared
> in class 'boost::details::pool::singleton_default<struct
> boost::singleton_pool<struct boost::pool_allocator_ta
> g,1,struct boost::default_user_allocator_new_delete,class
> boost::details::pool::null_mutex,32>::pool_type>'
> c:\boost\boost_1_28_0\boost\pool\detail\singleton.hpp(63) :
> see declaration of 'object_creator'
> c:\boost\boost_1_28_0\boost\pool\simple_segregated_storage.hpp
> (70) : while compiling class-template static data member 'struct
> boost::details::pool::singleton_default<struct
> boost::singleton_pool<struct boost::pool_allocator_tag,1,struct boo
> st::default_user_allocator_new_delete,class
> boost::details::pool::null_mutex,32>::pool_type>::object_creator
> boost::details::pool::singleton_default<boost::singleton_pool<boost::p
> ool_allocator_tag,1,boost::default_user_allocator_new_delete,boost::de
> tails::pool::null_mutex,32>::pool_type>::create_object'
> Error executing cl.exe.
>
> test_pool_alloc.obj - 1 error(s), 2 warning(s)
> /////////////////////////////////////////////////////////////
>
>
>
>


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