When compiling a c++ program that uses protobuf, I get:

In file included from /usr/local/include/google/protobuf/arena.h:53,
                 from /usr/local/include/google/protobuf/message_lite.h:49,
                 from 
/usr/local/include/google/protobuf/util/delimited_message_util.h:40,
                 from myprog.cpp:15:
/usr/local/include/google/protobuf/arena_impl.h:584:19: error: standard 
attributes in middle of decl-specifiers
  584 |   ABSL_CONST_INIT alignas(
      |                   ^~~~~~~
/usr/local/include/google/protobuf/arena_impl.h:584:19: note: standard 
attributes must precede the decl-specifiers to apply to the declaration, or 
follow them to apply to the type
/usr/local/include/google/protobuf/arena_impl.h:584:19: error: standard 
attributes in middle of decl-specifiers
/usr/local/include/google/protobuf/arena_impl.h:584:19: note: standard 
attributes must precede the decl-specifiers to apply to the declaration, or 
follow them to apply to the type

I am using gcc 12.2 on an ubuntu machine. Protobuf src is that which was 
available in git on dec 13. I built protobuf using cmake.

Lars

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/e4f6ad9f-a4b9-4a49-9855-e1f559b9d110n%40googlegroups.com.

Reply via email to