I have a class like this:
class MyClass
{
public:
void GetForm() {}
};
Now I want to call GetForm
:
MyClass myobj;
myobj.GetForm();
And at compilation I get this error:
error: 'class MyClass' has no member named 'GetFormA'; did you mean 'GetForm'?
What I have found is that in a file (winspool.h
), there is a definition:
#define GetForm __MINGW_NAME_AW(GetForm)
And this results in GetFormA
I guess for encoding thing.
But, how can it be possible that a #define
replace in a name of a function of an object?
How can resolve this?