linux下奇怪的编译错误!高分请教!
程序代码:
#ifndef _INPUTBUFFER_H
#define _INPUTBUFFER_H
using namespace std;
namespace Linden {
class InputBuffer
{
public:
InputBuffer(char* ,size_t );
InputBuffer(size_t = 0);
virtual ~InputBuffer(void);
///读数据
void read(char* , size_t);
///读一个byte
byte_t readByte();
///读bytes
void readBytes(byte_t*, size_t, size_t );
///读int32_t
int32_t readInt();
///读变长整型数
int32_t readVInt();
///读int64_t
int64_t readLong();
///读长整形变长整数
int64_t readVLong();
///读字符串
void readString(string& s);
void readCChars(char* ch)
{
int size = readVInt();
readChars(ch, 0, (size_t)size);
}
///读字符
void readChars(char* buffer, size_t start, size_t length);
///跳过一个变长整型数
void skipVInt(size_t nNum);
///tellg
int64_t tellg();
///seek
void seek(int64_t pos);
///判断文件是否结束
bool eof();
///求文件长度
int64_t length()const;
///设置文件长度
void setLength(int64_t newLen);
///设置缓冲
void setBuffer(char* buf,size_t bufSize);
///内部读
virtual void readInternal(char* b, size_t offset, siz