Hi Michael
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@UEvReset@@@no_context@detail@statechart@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@UEvStartStop@@@no_context@detail@statechart@boost@@QAEXABUEvStartStop@@@Z)
What compiler are you using?
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.
That might be necessary under certain circumstances e.g. when portions of a FSM reside in a lib file. Are you doing something like that? Thanks & Regards, -- Andreas Huber When replying by private email, please remove the words spam and trap from the address shown in the header.