I talked to the topic creator, and seem to be having the same problems as him. We both used the windows visual C++ installer(that was listed) and followed all the directions, but it doesn't seem to work for either of us. We both tried to compile the example from the boost site.(a couple actually)
Code:
#include <list>
#include <boost/any.hpp>
using boost::any_cast;
typedef std::list<boost::any> many;
void append_int(many & values, int value)
{
boost::any to_append = value;
values.push_back(to_append);
}
void append_string(many & values, const std::string & value)
{
values.push_back(value);
}
void append_char_ptr(many & values, const char * value)
{
values.push_back(value);
}
void append_any(many & values, const boost::any & value)
{
values.push_back(value);
}
void append_nothing(many & values)
{
values.push_back(boost::any());
}
This was the error I got.
Linking...
MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
C:\Users\Spylogo\Documents\Visual Studio 2008\Projects\BoostDemo\Debug\BoostDemo.exe : fatal error LNK1120: 1 unresolved externals