dll导出类编译失败
#include <cstdio>
#define DLL_DECL __delspec(dllexport)
class DLL_DECL IIO
{
public:
IIO(void);
virtual ~IIO(void);
virtual int Read(void* pBuf, int nSize,bool fBlock = true) = 0;
virtual int Write(const void* pBuf, int nSize,bool fBlock = true) = 0;
virtual void Flush(void);
virtual int Seek(long lOffset,int nOrigin) = 0;
virtual int Size(void) = 0;
virtual void Close(void) = 0;
virtual bool IsValid(void) const = 0;
virtual int GetCurPos(void) const = 0;
static bool IsJpegFile(IIO* pIO);
static bool IsJpegFile(FILE* fp);
static bool IsJpegFile(const wchar_t* wszFileName);
};
结果编译的时候出现错误:
error C2470: “IIO”: 看起来像函数定义,但没有参数列表;跳过明显的函数体
怎么弄