Boost logo

Boost Users :

From: Andreas Huber (ahd6974-spamgroupstrap_at_[hidden])
Date: 2006-11-20 18:13:53


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_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)

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. 

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