I have done a binary ftp of a .cpp file from a Solaris box to window and then tried to build the .cpp file in Visual Studio. The attempted build results in the compiler reporting error that do not make sense e.g.
/////////////Code Fragment
#ifndef __APPTYPES_H_
#include "apptypes.h"
#endif
class CCalcAccess; // fwd ref to friend class
class CDataFile;
class QString;
class AppdbDllDeclare CCalcStatic
{
private:
ID m_CalcID;
char m_Reference[ 20];
private:
inline ID CalcID( void) const { return m_CalcID;}
inline const char* Reference( void) const { return m_Reference;}
void Print( ostream& Os);
BOOL Load( CDataFile& DbFile);
BOOL Load( int p_id, QString &p_sRef );
BOOL Write( CDataFile& DbFile);
friend class CCalcAccess;
};
class AppdbDllDeclare CCalcDynamic
{
private:
CalcStatus_e m_Status;
CalcState_e m_State;
private:
inline CalcStatus_e Status(void) const
......................................
//////////////////
////////Compilation Error Message
C:\SmartControl\Rti\Appdb\calcdata.h(38) : error C2146: syntax error : missing ';' before identifier 'm_Status'
Can anybody help?
/////////////Code Fragment
#ifndef __APPTYPES_H_
#include "apptypes.h"
#endif
class CCalcAccess; // fwd ref to friend class
class CDataFile;
class QString;
class AppdbDllDeclare CCalcStatic
{
private:
ID m_CalcID;
char m_Reference[ 20];
private:
inline ID CalcID( void) const { return m_CalcID;}
inline const char* Reference( void) const { return m_Reference;}
void Print( ostream& Os);
BOOL Load( CDataFile& DbFile);
BOOL Load( int p_id, QString &p_sRef );
BOOL Write( CDataFile& DbFile);
friend class CCalcAccess;
};
class AppdbDllDeclare CCalcDynamic
{
private:
CalcStatus_e m_Status;
CalcState_e m_State;
private:
inline CalcStatus_e Status(void) const
......................................
//////////////////
////////Compilation Error Message
C:\SmartControl\Rti\Appdb\calcdata.h(38) : error C2146: syntax error : missing ';' before identifier 'm_Status'
Can anybody help?