Hi,
I am still a newbie to C++ and ran into a strange problem - I am using a static instance variable in my class, as soon as I do so I get an
error LNK2001: unresolved external symbol error message - however this only occurs when I am trying to set it to static, not when I just leave it non-static.
I need the variable to be static and dont know how to fix the problem. I did some searches and got an idea that this might either have to do with some compiler flags that need to be changed (however I only know how to ADD flags to the command line, not how to REMOVE them in Visual Studio Espress 2008) ... or with some C libraries which require including for this problem to disappear.
Can somebody help me with this and explain in more beginners-terms what I need to do, I find this slightly overwhelming.
I am using Visual Studio Express 2008 and the CImg library
Many thanks!