zutils icon indicating copy to clipboard operation
zutils copied to clipboard

RHEL7 环境,编译出错,缺少了include 对应的头文件

Open samuelyao314 opened this issue 9 years ago • 1 comments

RHEL7 环境,编译出错,缺少了include 对应的标准头文件

/home/samuel/install/zutils/zutils/base2/byte_stream.cc: In member function ‘virtual void* base::ByteStream::Alloc(uint32)’: /home/samuel/install/zutils/zutils/base2/byte_stream.cc:49:61: error: ‘malloc’ was not declared in this scope if (buffer_ == 0) buffer_ = (char *)malloc(new_buffer_size); ^ /home/samuel/install/zutils/zutils/base2/byte_stream.cc:50:58: error: ‘realloc’ was not declared in this scope else buffer_ = (char *)realloc(buffer_, new_buffer_size); ^ /home/samuel/install/zutils/zutils/base2/byte_stream.cc: In member function ‘virtual void base::ByteStream::Free()’: /home/samuel/install/zutils/zutils/base2/byte_stream.cc:63:15: error: ‘free’ was not declared in this scope free(buffer_);

samuelyao314 avatar Feb 09 '15 06:02 samuelyao314