Search found 1 match

by 982459340@qq.com
2025-04-21 14:31
Forum: Other
Topic: Compiler lacks support for C11 static assertions
Replies: 1
Views: 955

Compiler lacks support for C11 static assertions

root@WJHWPC:/home# arm-rockchip830-linux-uclibcgnueabihf-gcc test.c In file included from test.c:2: test.c:17:15: error: expected declaration specifiers or '...' before '__builtin_offsetof' static_assert(offsetof(struct Foo, a) == 0, "First element of struct does not have offset 0"); ^~~~~...