flatbuffers_char_vec_t unknown #325
Replies: 3 comments
-
|
There errrors do not look like something you did wrong, more likely a version mismatch. Are you sure you are using the correct flatcc tool compared to the include files you are rerferencing? FlatCC has been a bit slow with with official releases. It might be that you are generating code with a version that does not match the nix include header file, though I don't recall why vec_t should have changed to vec_ref_t for various types. I general, the common files produced by flatcc depends on a few core types define in the include/flatcc directory, and there is likely some disagreement here. I understand your point about not wanting to rebuild, but if you have CMake installed it is really easy to build. If you have ninja build it works out of the box otherwise you might have to call a setup script, dcoumented under build, to use make. It takes like 2 seconds efter cloning and you have a local directory with all files, no external dependencies. scripts/test.sh runs all tests after building automatically. |
Beta Was this translation helpful? Give feedback.
-
|
The same issue has surfaced independently on discord flatbuffers channel under https://discord.com/channels/656202785926152206/871499115928887306 |
Beta Was this translation helpful? Give feedback.
-
|
If you cannot or do not want to access the discord here is a summary of events so far: The exact same char_vec_t error has shown. The user has successfully clone and build flatcc locally and compiled the monster example as a separate project using the setup.sh script listed early in the README, but get errors in their own project. I have tried added the .fbs file causing problems to the monster test project and I get no errors. My current suspicision is: include/flatcc is installed as a system library with a package manager, but it is an old version. I cannot tell how to get your build to prefer one version over the other, but I do think flatcc should soon get a new release. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Sorry if this is super basic, but I'm struggling to understand how to use this library. I used the following
test.fbs:and generated via
flatcc -c,flatcc test.fbsandflatcc -w test.fbsthe following files:Next, I created a minimal example C file
test.cas:and tried to compile with:
(note that I installed flatcc with nix as I'd like to avoid compiling it myself as it is already packaged)
but I get many errors:
any idea what I did wrong?
Beta Was this translation helpful? Give feedback.
All reactions