You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 1, 2019. It is now read-only.
/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_);
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_);