Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
b8bee4f9
Commit
b8bee4f9
authored
Jun 26, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c++.capnp is installed now.
parent
ae3ac594
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
cxx.md
doc/cxx.md
+5
-8
No files found.
doc/cxx.md
View file @
b8bee4f9
...
...
@@ -179,14 +179,11 @@ using Cxx = import "/capnp/c++.capnp";
$Cxx.namespace("foo::bar::baz");
{% endhighlight %}
Note that for this to work,
`capnp/c++.capnp`
must be located in the search path specified with
`-I`
options. This file is found in the Cap'n Proto source repo, so you could invoke
`capnpc`
like
so:
capnpc -I$CAPNPROTO_GIT_ROOT/c++/src -oc++ myproto.capnp
As of this writing, the file is not automatically installed anywhere, but in the future it will
be.
Note that
`capnp/c++.capnp`
is installed in
`$PREFIX/include`
when you install the C++ runtime.
`capnpc`
automatically searches
`/usr/include`
and
`/usr/local/include`
for imports that start with
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
name.
## Types
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment