google / flatbuffers

FlatBuffers: Memory Efficient Serialization Library
https://flatbuffers.dev/
Apache License 2.0
23.16k stars 3.23k forks source link

Issue in installing FlatBuffers #8391

Open Bhuvan2210 opened 3 weeks ago

Bhuvan2210 commented 3 weeks ago

While running make command facing this issue

/home/bhuvan.gupta/flatbuffers/tests/test.cpp:89:41: error: expected primary-expression before ‘)’ token TEST_EQ(__is_trivially_copyable(Vec3), true); ^ /home/bhuvan.gupta/flatbuffers/tests/test_assert.h:19:34: note: in definition of macro ‘TEST_EQ’

define TEST_EQ(exp, val) TestEq(exp, val, "'" #exp "' != '" #val "'", FILE, LINE, "")

                              ^

/home/bhuvan.gupta/flatbuffers/tests/test.cpp:89:41: error: ‘__is_trivially_copyable’ was not declared in this scope TEST_EQ(__is_trivially_copyable(Vec3), true); ^ /home/bhuvan.gupta/flatbuffers/tests/test_assert.h:19:34: note: in definition of macro ‘TEST_EQ’

define TEST_EQ(exp, val) TestEq(exp, val, "'" #exp "' != '" #val "'", FILE, LINE, "")

                              ^

make[2]: [CMakeFiles/flattests.dir/tests/test.cpp.o] Error 1 make[1]: [CMakeFiles/flattests.dir/all] Error 2 make: *** [all] Error 2