<DIV>I am using Dev-C++ with boost 1.34.1,the program is the following:<BR>.......................</DIV>
<DIV>typedef std::map&lt;int, int&gt; IIPrimemap;<BR>IIPrimemap primemapvec;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; # define BetaKGre2&nbsp;&nbsp; 1 <BR>&nbsp;&nbsp;&nbsp;&nbsp; # define EqualToOne&nbsp; 2<BR>&nbsp;&nbsp;&nbsp;&nbsp; #define&nbsp; ProductOfKPrime&nbsp; 3</DIV>
<DIV>..........................</DIV>
<DIV>(switch_statement(_1,<BR>&nbsp;&nbsp; case_statement&lt;BetaKGre2&gt;<BR>&nbsp;&nbsp;&nbsp;(var(result)=0),<BR>&nbsp;&nbsp; case_statement&lt;EqualToOne&gt;<BR>&nbsp;&nbsp;&nbsp;(var(result)=1),<BR>&nbsp;&nbsp; case_statement&lt;ProductOfKPrime&gt;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(var(result)=bind(static_cast&lt;long double (*)(long double,int)&gt;(std::pow),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; constant(-1.0),bind(&amp;IIPrimemap::size,var(primemapvec)))),<BR>&nbsp;&nbsp; default_statement<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ( var(result)=234)<BR>&nbsp;&nbsp; ))(switchvalue);</DIV>
<DIV>&nbsp;</DIV>
<DIV>the complier told me no errors.But the linker told me that:</DIV>
<DIV>nstantiated from `Arg::sig&lt;boost::tuples::tuple&lt;A&amp;, B&amp;, C&amp;, Env&amp;, boost::tuples::null_type, boost::tuples::null_type, boost........</DIV>
<DIV>&nbsp;instantiated from `RET boost::lambda::lambda_functor_base&lt;boost::lambda::s................</DIV>
<DIV>nstantiated from `T::sig&lt;boost::tuples::tuple&lt;A&amp;, boost::tuples::null_type, boost::tuples::null_type, bo...........</DIV>
<DIV>&nbsp;instantiated from here..........// indicating the line:</DIV>
<DIV>&nbsp; ))(switchvalue);</DIV>
<DIV>And after the second compling and linking , the program passed and ran</DIV>
<DIV>I do not know why. And this was caused after I added the line:</DIV>
<DIV>&nbsp;(var(result)=bind(static_cast&lt;long double (*)(long double,int)&gt;(std::pow),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; constant(-1.0),bind(&amp;IIPrimemap::size,var(primemapvec)))),</DIV>
<DIV>otherwise the program do not have such problems. How can I solve it?</DIV>
<DIV>Can anyone with kindness help me?<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>&nbsp;</DIV><br><!-- footer --><br><span title="neteasefooter"/><hr/>
<a href="http://count.mail.163.com/redirect/footer.htm?f=http://gouwu.youdao.com">200������Ʒ,��ͼ۸�,����ջ���</a>
</span>