I have an old MFC based C++ project that I am trying to compile with g++ in eclipse on Linux (Centos 6.2). I'm getting the following errors from header files:
RawData.h:54: error: expected template-name before ‘<’ token
RawData.h:54: error: expected ‘{’ before ‘<’ token
RawData.h:54: error: expected unqualified-id before ‘<’ token
Here is the part of the header file with the problem (starting with line 54):
class CRawDayData: public CArray<CRawQHData*,CRawQHData*>
{
public:
CRawDayData();
virtual ~CRawDayData();
public:
tm m_tmDate;
};
I'm thinking the issue has something to do with the CArray since I'm on Linux and not using MFC's afx stuff. Any thoughts?