Hi all,
how to remove the following complle error.
When I compiling the code I get the following errors:
Compiling...
CDrtEachDefFeat .cpp
d:\ include\common\ cdrtintegfeat.h (39) : error C2143: syntax error :
missing ';' before '*'
d:\ include\common\ cdrtintegfeat.h (39) : error C2501: 'CDrtEachDefFea t'
: missing storage-class or type specifiers
d:\ include\common\ cdrtintegfeat.h (39) : error C2501:
'm_pdrtEachDefF eat' : missing storage-class or type specifiers
In code the files are included in the order, CDrtEachDefFeat has #
include "CDrtTeachD ata" and so on...
CDrtEachDefFeat
|
|__ __CDrtTeachData
|
|__ __CDrtIntegFeat
|
|__ __CDrtEachDefFe at
Code is:
==========Start of CDrtEachDefFeat .h============= ===
#if !defined(COMMON _CDRTEACHDEFFEA T_H)
#define COMMON_CDRTEACH DEFFEAT_H
#include "CDrtTeachData. h"
/* member function of CdrtEachDefFeat class uses, class CdrtTeachData
as input parameter. */
namespace Common
{
class DLL_EXPORT CDrtEachDefFeat
{
}
}
#endif
==========End of CDrtEachDefFeat .h============= ===
==========Start of CDrtIntegFeat.h =============== =
#if !defined(COMMON _CDRTINTEGFEAT_ H)
#define COMMON_CDRTINTE GFEAT_H
#include "CDrtEachDefFea t.h"
namespace Common
{
class DLL_EXPORT CDrtIntegFeat
{
CDrtEachDefFeat *m_pdrtEachDefF eat;
}
}
}
#endif
==========End of CDrtIntegFeat.h =============== =
==========Start of CDrtTeachData.h =============== =
#if !defined(COMMON _CDRTTEACHDATA_ H)
#define COMMON_CDRTTEAC HDATA_H
#include "CDrtIntegFeat. h"
/* member function of CDrtTeachData class, uses class CDrtIntegFeat as
input parameter. */
namespace Common
{
class DLL_EXPORT CDrtTeachData
{
}
}
#endif
==========End of CDrtTeachData.h =============== =
how to remove the following complle error.
When I compiling the code I get the following errors:
Compiling...
CDrtEachDefFeat .cpp
d:\ include\common\ cdrtintegfeat.h (39) : error C2143: syntax error :
missing ';' before '*'
d:\ include\common\ cdrtintegfeat.h (39) : error C2501: 'CDrtEachDefFea t'
: missing storage-class or type specifiers
d:\ include\common\ cdrtintegfeat.h (39) : error C2501:
'm_pdrtEachDefF eat' : missing storage-class or type specifiers
In code the files are included in the order, CDrtEachDefFeat has #
include "CDrtTeachD ata" and so on...
CDrtEachDefFeat
|
|__ __CDrtTeachData
|
|__ __CDrtIntegFeat
|
|__ __CDrtEachDefFe at
Code is:
==========Start of CDrtEachDefFeat .h============= ===
#if !defined(COMMON _CDRTEACHDEFFEA T_H)
#define COMMON_CDRTEACH DEFFEAT_H
#include "CDrtTeachData. h"
/* member function of CdrtEachDefFeat class uses, class CdrtTeachData
as input parameter. */
namespace Common
{
class DLL_EXPORT CDrtEachDefFeat
{
}
}
#endif
==========End of CDrtEachDefFeat .h============= ===
==========Start of CDrtIntegFeat.h =============== =
#if !defined(COMMON _CDRTINTEGFEAT_ H)
#define COMMON_CDRTINTE GFEAT_H
#include "CDrtEachDefFea t.h"
namespace Common
{
class DLL_EXPORT CDrtIntegFeat
{
CDrtEachDefFeat *m_pdrtEachDefF eat;
}
}
}
#endif
==========End of CDrtIntegFeat.h =============== =
==========Start of CDrtTeachData.h =============== =
#if !defined(COMMON _CDRTTEACHDATA_ H)
#define COMMON_CDRTTEAC HDATA_H
#include "CDrtIntegFeat. h"
/* member function of CDrtTeachData class, uses class CDrtIntegFeat as
input parameter. */
namespace Common
{
class DLL_EXPORT CDrtTeachData
{
}
}
#endif
==========End of CDrtTeachData.h =============== =
Comment