flatbuffers
flatbuffers copied to clipboard
Problem compiling - Ubuntu 18.04 CMAKE version 3.10.2 make version 4.1
Issue trying to compile flat buffers - Ubuntu 18.04 CMAKE version 3.10.2 make version 4.1
git clone https://github.com/google/flatbuffers.git cd flatbuffers/ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release make
CMakeFiles/flatc.dir/src/flatc.cpp.o: In function flatbuffers::FlatCompiler::AnnotateBinaries(unsigned char const*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)': flatc.cpp:(.text+0xf96): undefined reference to flatbuffers::BinaryAnnotator::Annotate()'
flatc.cpp:(.text+0x11f2): undefined reference to `flatbuffers::AnnotatedBinaryTextGenerator::Generate(std::__cxx11::basic_string<char, std::char_traits
Any ideas? Thanks in advance!
Are you trying to do anything illegal?
This is because you are using a non-supported cmake version, see https://github.com/google/flatbuffers/blob/master/CMakeLists.txt#L4-L16