The FlatBuffers project requires a C++11 compiler to build. But what are the version requirements for the C++ header file generated by flatc
?
Asked
Active
Viewed 1,059 times
2

masonk
- 9,176
- 2
- 47
- 58
2 Answers
3
They are no different. The generated headers include flatbuffers.h
, which depends on C++11.
That said, the it doesn't require the full C++11 feature set, it will build on compilers as old as Visual Studio 2010 and GCC 4.8.2.

Aardappel
- 5,559
- 1
- 19
- 22
-
g++ 4.4 & 4.5 seem to be supported as well, according to flatbuffers.h comments. – Alex Che May 04 '17 at 09:45
-
@AlexChe We have supported g++ 4.4 in the past, and we try to not break that compatibility, but we do not have CI set up with 4.4 so hard to say if it doesn't get broken on occasion. – Aardappel May 04 '17 at 17:39
0
I am using G++ 4.8.1. You just need to set -std=c++11 to get the features you need.

dmccracken42
- 11
- 4