On Ubuntu 22.04, with gcc 11.3, this error is reported libedgetpu/makefile_build/../api/allocated_buffer.h:31:39: error: ‘size_t’ has not been declared
31 | AllocatedBuffer(unsigned char* ptr, size_t size_bytes,
| ^~
libedgetpu/makefile_build/../api/allocated_buffer.h:47:3: error: ‘size_t’ does not name a type
47 | size_t size_bytes() const { return sizebytes; }
| ^~
libedgetpu/makefile_build/../api/allocated_buffer.h:19:1: note: ‘size_t’ is defined in header ‘\
’; did you forget to ‘#include ’?
18 | #include
+++ |+#include
So include cstddef as recommended.
Signed-off-by: Tom Rix
On Ubuntu 22.04, with gcc 11.3, this error is reported libedgetpu/makefile_build/../api/allocated_buffer.h:31:39: error: ‘size_t’ has not been declared 31 | AllocatedBuffer(unsigned char* ptr, size_t size_bytes, | ^
~libedgetpu/makefile_build/../api/allocated_buffer.h:47:3: error: ‘size_t’ does not name a type 47 | size_t size_bytes() const { return sizebytes; } | ^~libedgetpu/makefile_build/../api/allocated_buffer.h:19:1: note: ‘size_t’ is defined in header ‘\