You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Laurent Stacul (Jira)" <ji...@apache.org> on 2020/03/02 15:08:00 UTC
[jira] [Created] (AVRO-2766) [C++] Compilation failure size_t
Laurent Stacul created AVRO-2766:
------------------------------------
Summary: [C++] Compilation failure size_t
Key: AVRO-2766
URL: https://issues.apache.org/jira/browse/AVRO-2766
Project: Apache Avro
Issue Type: Bug
Components: build, c++
Affects Versions: 1.9.2
Reporter: Laurent Stacul
With the following system:
{code:java}
$ uname -a
Linux edf2927682ca 5.3.0-40-generic #32-Ubuntu SMP Fri Jan 31 20:24:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ gcc --version
gcc (GCC) 10.0.1 20200220 (experimental){code}
I received the compilation error:
{code:java}
In file included from /home/docker/development/opensource-pack-builder/components/avro/BUILD/avro-src-1.9.2/lang/c++/impl/Zigzag.cc:20:
/home/docker/development/opensource-pack-builder/components/avro/BUILD/avro-src-1.9.2/lang/c++/api/Zigzag.hh:37:11: error: 'size_t' does not name a type
37 | AVRO_DECL size_t encodeInt32(int32_t input, std::array<uint8_t, 5> &output);
| ^~~~~~
/home/docker/development/opensource-pack-builder/components/avro/BUILD/avro-src-1.9.2/lang/c++/api/Zigzag.hh:26:1: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
25 | #include "Config.hh"
+++ |+#include <cstddef>
26 | /// \file
/home/docker/development/opensource-pack-builder/components/avro/BUILD/avro-src-1.9.2/lang/c++/api/Zigzag.hh:38:11: error: 'size_t' does not name a type
38 | AVRO_DECL size_t encodeInt64(int64_t input, std::array<uint8_t, 10> &output);
| ^~~~~~
/home/docker/development/opensource-pack-builder/components/avro/BUILD/avro-src-1.9.2/lang/c++/api/Zigzag.hh:38:11: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?{code}
Regards,
Laurent
--
This message was sent by Atlassian Jira
(v8.3.4#803005)