$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Michael (admin_at_[hidden])
Date: 2006-11-20 12:37:06
I am going through the tutorial for Statechart. Going through the section 
"adding reactions", while debug build links fine, in a release mode linker 
issues following complaints:
1>FSM.obj : error LNK2001: unresolved external symbol "public: void 
__thiscall boost::statechart::detail::no_context::no_function<struct 
EvReset>(struct EvReset const &)" 
(??$no_function_at_UEvReset@@@no_context_at_detail@statechart_at_boost@@QAEXABUEvReset@@@Z)
1>FSM.obj : error LNK2001: unresolved external symbol "public: void 
__thiscall boost::statechart::detail::no_context::no_function<struct 
EvStartStop>(struct EvStartStop const &)" 
(??$no_function_at_UEvStartStop@@@no_context_at_detail@statechart_at_boost@@QAEXABUEvStartStop@@@Z)
I ended up adding following line to my cpp file:
    template< class Event > void sc::detail::no_context::no_function( const 
Event & ) {};
and it cured the linker complaint.
Michael