
30 Aug
2008
30 Aug
'08
5:55 p.m.
Hi all, i've got linking problem (both in visual studio 2005 and 2008 in vista and boost 1.36) with this piece of code. boost::function<double (double)>h=boost::bind(std::multiplies<double>(),boost::lambda::_1,5.0); If i now write std::cout<<h(3.0) the compilation fails with the following error: visual studio 2005: error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl boost::assertion_failed(char const *,char const *,char const *,long)" (?assertion_failed@boost@@YAXPBD00J@Z)" and visual studio 2008: error LNK2001: unresolved external symbol "void __cdecl boost::assertion_failed(char const *,char const *,char const *,long)" (?assertion_failed@boost@@YAXPBD00J@Z) But compilation is ok. with regards, Kim Tang