google-coral / libedgetpu

Source code for the userspace level runtime driver for Coral.ai devices.
Apache License 2.0
179 stars 60 forks source link

include cstddef #43

Closed trixirt closed 5 months ago

trixirt commented 1 year ago

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
trixirt commented 1 year ago

ping