c-capnproto
c-capnproto copied to clipboard
Howto use the program?
cat ../capnproto/c++/samples/addressbook.capnp | ./capnpc-c
failed to read schema from stdin
Is there a how to use the program? Or isn't it finished?
This issue is quite old so perhaps you've already discovered the answer to this, but I accidentally stumbled on it myself while reading the official docs on how to write a plugin. It seems that plugins expect a source file augmented with data layout comments.
capnp compile -I../capnproto/c++/src -oc ../capnproto/c++/samples/addressbook.capnp
To make this work, you need capnpc-c
in your environment PATH
. Even after this, it still does not work correctly:
cant find node with id 0xf264a779fef191ce
c: plugin failed: exit code 2
I suspect Cap'n Proto has gained some features since this C backend was last updated.
I'll give it a shot :)