Boost logo

Boost Users :

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


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