I think there is a possible conflict between a method and a windows macro. I am using cygwin gcc and this is what my conflict looks like
File : MRepository.h
#pragma once
#ifdef GetMessage
#undef GetMessage
#endif //GetMessage
class MRepository
{
public:
std::wstring GetMessage(const std::wstring &key) const;
...
....
};
File : MRepository.cpp
bool MRepository::SomeMethod(boost::shared_ptr<foo> &nd)
{
std::wstring type = this->GetMessage(L"SomeData"); //Error Here : Method not recognized
....
....
return available;
}
This is the error that I get from the method
error: 'class MRepository' has no member named 'GetMessageA'|
Notice that I called GetMessage
but it thinks the method is called GetMessageA
any suggestions on why the compiler thinks I am trying to reference GetMessageA
when I clearly typed in GetMessage
?