Boost logo

Boost Users :

From: Joshua (animedemon_at_[hidden])
Date: 2002-10-22 20:39:55


I'm using VC++ 6.0 with the SGI implementation of the STL. I'm trying to use the shared_ptr but when I try to include the <boost/shared_ptr.hpp> file I get about 40 errors. Most are related to errors redefining template functions. Its conflicting with the SGI STL header files but I'm not sure how to fix it. I keep thinking that I need to adjust the include order (Currently the Boost files are first, the the STL, then Microsofts includes. It doesn't matter where the Boost include directory is though I still get the same errors :
this is a small sample
--------------------Configuration: DryDock - Win32 Debug--------------------
Compiling...
AbstractComponent.cpp
e:\programming projects\c++ projects\boost_1_29_0\boost\config\suffix.hpp(256) : error C2995: 'min' : template function has already been defined
        e:\programming projects\c++ projects\drydock\drydock\stl\stl_algobase.h(106) : see declaration of 'min'
e:\programming projects\c++ projects\boost_1_29_0\boost\config\suffix.hpp(260) : error C2995: 'max' : template function has already been defined
        e:\programming projects\c++ projects\drydock\drydock\stl\stl_algobase.h(112) : see declaration of 'max'
e:\programming projects\c++ projects\boost_1_29_0\boost\checked_delete.hpp(24) : error C2061: syntax error : identifier 'T'
e:\programming projects\c++ projects\boost_1_29_0\boost\checked_delete.hpp(24) : error C2061: syntax error : identifier 'T'
e:\programming projects\c++ projects\boost_1_29_0\boost\checked_delete.hpp(30) : error C2061: syntax error : identifier 'T'
e:\programming projects\c++ projects\boost_1_29_0\boost\checked_delete.hpp(30) : error C2061: syntax error : identifier 'T'
e:\programming projects\c++ projects\boost_1_29_0\boost\detail\shared_count.hpp(213) : error C2504: 'counted_base' : base class undefined
        e:\programming projects\c++ projects\boost_1_29_0\boost\detail\shared_count.hpp(235) : see reference to class template instantiation 'detail::counted_base_impl<P,D>' being compiled

And it goes on like that to a grand total of 40 errors. I know its probably just something like the order of the includes or I need to add something to specify the namespace correctly. Has any tried using this combination of libraries (VC++, SGI STL, Boost) and gotten it to work?
Thanks.


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