# igraph integrations

**URL:** <https://igraph.discourse.group/t/igraph-integrations/965>\
**Category:** Installation\
**Tags:** C, R\
**Created:** [12 November 2021 14:28 UTC](https://igraph.discourse.group/t/igraph-integrations/965 "2021-11-12T14:28:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![szhorvat](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/szhorvat/32/3_2.png) [@szhorvat](https://igraph.discourse.group/u/szhorvat)\
**Post date:** [12 November 2021 15:18 UTC](https://igraph.discourse.group/t/igraph-integrations/965/2 "2021-11-12T15:18:41Z")

</div>

When linking a static library, just specify the path to the library, _without_ the `-L` flag.

The `-L` flag has a different purpose: the adds to the search path for libraries. Its argument must be a directory, not a library.

* * *

> [@Nikolajpopovic1](#):
>
> how do you add your new function to the existing package et cetera.

To learn how to add new functions to the igraph C library (not the R library, but C for now), go through the following steps in order:

- Learn how to install igraph, [igraph Reference Manual](https://igraph.org/c/html/latest/igraph-Installation.html)
- Learn how to use igraph from a simple C program, [igraph Reference Manual](https://igraph.org/c/html/latest/igraph-Tutorial.html)
- Check the tutorials in the wiki about how to contribute to igraph: [Home · igraph/igraph Wiki · GitHub](https://github.com/igraph/igraph/wiki)

* * *

In order to add a new function, programmed in C, to R/igraph, you need to first add it to C/igraph. R/igraph is currently based on an outdated C/igraph 0.8. Once we update R/igraph to use C/igraph 0.9.x, adding new functions to R will become easier.

Information about how R/igraph uses C/igraph is here: [What is the best way to edit igraph C functions and call them into R?](https://igraph.discourse.group/t/what-is-the-best-way-to-edit-igraph-c-functions-and-call-them-into-r/904) However, this might change somewhat in the future. I do not recommend that you try to work with the outdated C/igraph 0.8 anymore.

* * *

> [@Nikolajpopovic1](#):
>
> The best way would be if i can personaly contact anyone who would be ready to help and meet him through the zoom meting.

I’m afraid that this is asking for more than what we have resources for at the moment. Let us please keep all communication on this forum. This way whoever has time at this moment may respond.

---

_[View the full topic](https://igraph.discourse.group/t/igraph-integrations/965)._
