You’re asking for a member in the FooEncoder
struct which isn’t visible anywhere in your foo_interface.cc file. This looks similar to a pimpl idiom.
In order to have your code aware of FooEncoder
‘s structure you need to either
#include "foo_encoder.c"
in your foo_interface.cc file (I quite don’t like this solution and you didn’t post the full code either) or move your struct definition elsewhere in a header file and include that one (recommended).