Boost logo

Boost Users :

Subject: [Boost-users] VC6 error_code.hpp compile errors
From: Daniele Barzotti (daniele.barzotti_at_[hidden])
Date: 2009-04-15 04:23:37


Hi,

I'm developing an ATL library to wrap another LIB with VC6.

The includes comprehends:

#include <boost/asio.hpp>
#include <boost/asio/serial_port.hpp>
#include <boost/thread.hpp>
#include <boost/signals2/signal.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/enable_shared_from_this.hpp>

When I compile I get these errors:

---------------------------------------------------------------
g:\lib\boost_1_38_0\boost\system\error_code.hpp(45) : error C2252:
'value' : pure specifier can only be specified for functions
        g:\lib\boost_1_38_0\boost\system\error_code.hpp(45) : see
reference to class template instantiation
'boost::system::is_error_code_enum<T>' being compiled
g:\lib\boost_1_38_0\boost\system\error_code.hpp(48) : error C2252:
'value' : pure specifier can only be specified for functions
        g:\lib\boost_1_38_0\boost\system\error_code.hpp(48) : see
reference to class template instantiation
'boost::system::is_error_condition_enum<T>' being compiled
g:\lib\boost_1_38_0\boost\system\error_code.hpp(145) : error C2258:
illegal pure syntax, must be '= 0'
g:\lib\boost_1_38_0\boost\system\error_code.hpp(145) : error C2252:
'value' : pure specifier can only be specified for functions
g:\lib\boost_1_38_0\boost\system\error_code.hpp(230) : error C2039:
'type' : is not a member of 'enable_if<struct
boost::system::is_error_condition_enum<Cond>,void>'
g:\lib\boost_1_38_0\boost\system\error_code.hpp(244) : error C2039:
'type' : is not a member of 'enable_if<struct
boost::system::is_error_condition_enum<Cond>,class
boost::system::error_condition>'
g:\lib\boost_1_38_0\boost\system\error_code.hpp(297) : error C2784:
'struct boost::type &__thiscall boost::system::error_condition::operator
=(ErrorConditionEnum)' : could not deduce template argument for 'struct
boost::type &' from 'class boost::sy
stem::error_condition &'
g:\lib\boost_1_38_0\boost\system\error_code.hpp(297) : error C2785:
'struct boost::type &__thiscall boost::system::error_condition::operator
=(ErrorConditionEnum)' and 'class boost::system::error_condition
&__thiscall boost::system::error_condition:
:operator =(const class boost::system::error_condition &)' have
different return types
        g:\lib\boost_1_38_0\boost\system\error_code.hpp(245) : see
declaration of '='
g:\lib\boost_1_38_0\boost\system\error_code.hpp(317) : error C2039:
'type' : is not a member of 'enable_if<struct
boost::system::is_error_code_enum<Cond>,void>'
g:\lib\boost_1_38_0\boost\system\error_code.hpp(330) : error C2039:
'type' : is not a member of 'enable_if<struct
boost::system::is_error_code_enum<Cond>,class boost::system::error_code>'
g:\lib\boost_1_38_0\boost\system\error_code.hpp(384) : error C2784:
'struct boost::type &__thiscall boost::system::error_code::operator
=(ErrorCodeEnum)' : could not deduce template argument for 'struct
boost::type &' from 'class boost::system::erro
r_code &'
g:\lib\boost_1_38_0\boost\system\error_code.hpp(384) : error C2785:
'struct boost::type &__thiscall boost::system::error_code::operator
=(ErrorCodeEnum)' and 'class boost::system::error_code &__thiscall
boost::system::error_code::operator =(const cl
ass boost::system::error_code &)' have different return types
        g:\lib\boost_1_38_0\boost\system\error_code.hpp(331) : see
declaration of '='
g:\lib\boost_1_38_0\boost\system\error_code.hpp(395) : error C2143:
syntax error : missing ';' before '}'
g:\lib\boost_1_38_0\boost\system\error_code.hpp(401) : error C2143:
syntax error : missing ';' before '}'
g:\lib\boost_1_38_0\boost\system\error_code.hpp(451) : fatal error
C1903: unable to recover from previous error(s); stopping compilation
---------------------------------------------------------------

Could someone give me some feedback?
I need VC6 because its the only environment I can use to develop an ATL
project!

Thanks in advance!
Daniele.


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