BCB中E2238 E2344 和E2171的错误
慎思 2018-05-11 08:36:45 struct PixelInformation
{
int b;
int g;
int r;
int gray;
int sharpness;
};
class CImageCal
{
public:
struct PixelInformation rgbp[videoWidth][videoHeight];
int imageW;
int imageH;
public:
CImageCal(Graphics::TBitmap* bmp); //构造函数
//void CImageCal::Read(Graphics::TBitmap* bmp);
double CImageCal::CalSharpness();
} ;
错误一直出现在这一段代码里,如下:
[C++ Error] pixelcal.h(8): E2238 Multiple declaration for 'PixelInformation'
[C++ Error] pixelcal.h(7): E2344 Earlier declaration of 'PixelInformation'
[C++ Error] pixelcal.h(17): E2238 Multiple declaration for 'CImageCal'
[C++ Error] pixelcal.h(16): E2344 Earlier declaration of 'CImageCal'
然后在构造函数和CalSharpness里面一直出现下面的错误:
[C++ Error] pixelcal.h(32): E2171 Body has already been defined for function 'CImageCal::CImageCal(TBitmap *)'
[C++ Error] pixelcal.h(72): E2171 Body has already been defined for function 'CImageCal::CalSharpness
百度也找不到相关的信息,请各位大神指教~