Hi everybody!
I'm using Visual Studio 2005 and don't know how to solve this problem. Till now, everything worked just fine, included all the necessary libs, headers and so on.
But there is the problem:
I have to implement a class ColorSpaces with static member functions, which manipulates a buffer from the class MSImage and returns it.
ColorSpaces.h looks like this:
Code:
class ColorSpaces
{
public:
ColorSpaces();
virtual ~ColorSpaces(void);
// returns a buffer, where the L,a,b values of a given MSImage are stored
static char* calculateLab(MSImage* image);
static char* calculateLuv(MSImage* image);
static char* calculateRG(MSImage* image);
};
ColorSpaces.cpp does nothing much till now, but looks like this:
Code:
ColorSpaces::ColorSpaces()
{
}
// ----------------------------------------------------------------------------
ColorSpaces::~ColorSpaces(void)
{
}
char* ColorSpaces::calculateLab(MSImage* image)
{
// cout << image->data3D << endl;
}
char* ColorSpaces::calculateLuv(MSImage* image)
{
}
char* ColorSpaces::calculateRG(MSImage* image)
{
}
I'm calling calculateLab from main:
Code:
MSImage msimage(str,false); // reads image and safes it in unsigned char*** data3D
ColorSpaces::calculateLab(&msimage);
Problem 1:
Why I get this error message?
Code:
error LNK2001: unresolved external symbol "public: static char * __cdecl ColorSpaces::calculateLab(class MSImage *)" (?calculateLab@ColorSpaces@@SAPADPAVMSImage@@@Z)
Problem 2:
When I'm hoovering over calculateLab with my mouse, tooltip says:
Code:
int* ColorSpaces::calculateLab(void);
Why is that?
Can anybody help me pleeze? Would be much appreciated. Thx
Bye
Adamn