# Installation of gv.cpp and gv.i

**URL:** https://forum.graphviz.org/t/installation-of-gv-cpp-and-gv-i/310
**Category:** Help
**Created:** [August 23, 2020, 1:48am UTC](https://forum.graphviz.org/t/installation-of-gv-cpp-and-gv-i/310 "2020-08-23T01:48:04Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![smattr](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/smattr/32/85_2.png) [@smattr](https://forum.graphviz.org/u/smattr)
#### Post date: [August 23, 2020, 1:48am UTC](https://forum.graphviz.org/t/installation-of-gv-cpp-and-gv-i/310/1 "2020-08-23T01:48:04Z")

</div>

The autotools build installs tclpkg/gv/gv.cpp and tclpkg/gv/gv.i to include/. Is this intentional? I can’t imagine any user expects to find these files there.

---

<div class="post-metadata">

### Author: ![mark](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/mark/32/84_2.png) [@mark](https://forum.graphviz.org/u/mark)
#### Post date: [August 23, 2020, 2:05am UTC](https://forum.graphviz.org/t/installation-of-gv-cpp-and-gv-i/310/2 "2020-08-23T02:05:18Z")

</div>

I thought include/ should pretty much only include header files (.h) ?

---

<div class="post-metadata">

### Author: ![smattr](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/smattr/32/85_2.png) [@smattr](https://forum.graphviz.org/u/smattr)
#### Post date: [August 23, 2020, 2:18am UTC](https://forum.graphviz.org/t/installation-of-gv-cpp-and-gv-i/310/3 "2020-08-23T02:18:51Z")

</div>

Yep, that’s pretty much my understanding too. Which was why I was surprised to find a .cpp in there. I don’t know what .i is, but it looks like unprocessed SWIG input, which doesn’t seem to belong in include/ either.

---

<div class="post-metadata">

### Author: ![Ellson](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/ellson/32/19_2.png) [@Ellson](https://forum.graphviz.org/u/Ellson)
#### Post date: [August 26, 2020, 12:01am UTC](https://forum.graphviz.org/t/installation-of-gv-cpp-and-gv-i/310/4 "2020-08-26T00:01:16Z")

</div>

It was intentional. Those are the only source files needed to build additional language bindings with SWIG.

I can agree that they are probably not used much.

---

<div class="post-metadata">

### Author: ![smattr](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/smattr/32/85_2.png) [@smattr](https://forum.graphviz.org/u/smattr)
#### Post date: [August 26, 2020, 12:24am UTC](https://forum.graphviz.org/t/installation-of-gv-cpp-and-gv-i/310/5 "2020-08-26T00:24:55Z")

</div>

Ah I see. So is include/ the right place for them? I have no objection to leaving them installed there if that is indeed the correct location.

---

<div class="post-metadata">

### Author: ![Ellson](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/ellson/32/19_2.png) [@Ellson](https://forum.graphviz.org/u/Ellson)
#### Post date: [August 31, 2020, 5:06pm UTC](https://forum.graphviz.org/t/installation-of-gv-cpp-and-gv-i/310/6 "2020-08-31T17:06:53Z")

</div>

{prefix}/include/graphviz/  
as I recall, so I felt we could assume some leniency. I didn’t want to separate them.

Do you have suggestion?

John

---

<div class="post-metadata">

### Author: ![magjac](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/magjac/32/16_2.png) [@magjac](https://forum.graphviz.org/u/magjac)
#### Post date: [August 31, 2020, 6:51pm UTC](https://forum.graphviz.org/t/installation-of-gv-cpp-and-gv-i/310/7 "2020-08-31T18:51:56Z")

</div>

`{prefix}/share/graphviz/<something>/`?

`<something>` = `swig` ?

Plenty of stuff under `{prefix}/share/graphviz/` already:

```auto
share/graphviz/demo
share/graphviz/doc
share/graphviz/examples
share/graphviz/graphs
share/graphviz/gvedit
share/graphviz/gvpr
share/graphviz/lefty
share/graphviz/smyrna

```
