I have a boost::variant problem. I have a dll to which I've added a couple classes using boost::variant. Everything compiles fine, but during build, I get the following error:
namespace neo
{
class CLASS_DECLSPEC NPoint :
public NValueBase
{
public:
.....
bool getWriteValue(NValue& t);
Compiles fine, but the linker goes on to say:
" referenced in function "public: bool __thiscall neo::NPoint::getWriteValue .."
I've been using boost for the past two months in this project with no problem, but now I can't get this to link. I'm sure I'm doing something stupid. Does anyone have any insight?
you might need to link another library... possibly one with variant in it... I still have yet to use boost, so can't say much. Did you compile all the libraries already and did you link the appropriate ones?
Is there an additional library for Boost.Variant? There isn't one listed in the "documentation," although I use the term documentation loosely in this case.
I am using some boost features that require lib files, and have included the lib directory in my project. They do not have a problem. Perhaps there is a .lib file I need to specifically mention in the linker settings? I can find no mention of one in the doc.