Commit b8bee4f9 authored by Kenton Varda's avatar Kenton Varda

c++.capnp is installed now.

parent ae3ac594
...@@ -179,14 +179,11 @@ using Cxx = import "/capnp/c++.capnp"; ...@@ -179,14 +179,11 @@ using Cxx = import "/capnp/c++.capnp";
$Cxx.namespace("foo::bar::baz"); $Cxx.namespace("foo::bar::baz");
{% endhighlight %} {% endhighlight %}
Note that for this to work, `capnp/c++.capnp` must be located in the search path specified with Note that `capnp/c++.capnp` is installed in `$PREFIX/include` when you install the C++ runtime.
`-I` options. This file is found in the Cap'n Proto source repo, so you could invoke `capnpc` like `capnpc` automatically searches `/usr/include` and `/usr/local/include` for imports that start with
so: a `/`, so it should "just work". If you installed somewhere else, you may need to add it to the
search path with the `-I` flag to `capnpc`, which works much like the compiler flag of the same
capnpc -I$CAPNPROTO_GIT_ROOT/c++/src -oc++ myproto.capnp name.
As of this writing, the file is not automatically installed anywhere, but in the future it will
be.
## Types ## Types
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment