Original Post
After some recent reading, I decided to try out boost::signals. Unfortunately, Mr Dumb-ass, is having problems getting it to work. The relevant text from the boost page is: On Windows, with Microsoft Visual C++ or Borland C++, the linking process is nearly automatic. As with the Regex library, the libraries in libs\signals\build\bin-stage will have mangled names and will be automatically be including in the link process. To link against the Signals library binary dynamically (e.g., using the Signals DLL), define BOOST_SIGNALS_DYN_LINK when building your application; to link statically, define BOOST_SIGNALS_STATIC_LINK. (For note : I am a Windows user, working with VS2003). Oh goody, thought I - my wonderful windows will handle all the linking, all I need to do is add a define. Hence, my code became: which I assumed, given the text from the boost website above, would be enough. Error message is: Console Experimentation fatal error LNK1104: cannot open file 'libboost_signals-vc71-sgd-1_32.lib' which isn't surprising, because in my boost/lib directory I have: boost-signals-vc71-mt-1_32.dll boost-signals-vc71-mt-1_32.lib boost-signals-vc71-mt.lib boost-signals-vc71-mt-gd-1_32.dll boost-signals-vc71-mt-gd-1_32.lib boost-signals-vc71-mt-gd.lib That is, I neither have the directory libs\signals\build\bin-stage referenced in the boost text, nor the requested file. What's going on? Any suggestions? Some ideas: Am I misreading some instructions? Do I have to build some extra stuff to use signals, as it appears you have to do with boost::regex? Do I need to pragma something in? Am I a dumb-ass? Thanks for any help! Jim.
#define BOOST_SIGNALS_STATIC_LINK
#include <boost/signals.hpp>
int main()
{
return 0;
}