# How to add to library

**URL:** <https://aravis-project.discourse.group/t/how-to-add-to-library/354>\
**Category:** Development\
**Created:** [January 6, 2022, 6:42pm UTC](https://aravis-project.discourse.group/t/how-to-add-to-library/354 "2022-01-06T18:42:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tenspd137](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@tenspd137](https://aravis-project.discourse.group/u/tenspd137)\
**Post date:** [January 6, 2022, 6:42pm UTC](https://aravis-project.discourse.group/t/how-to-add-to-library/354/1 "2022-01-06T18:42:17Z")

</div>

How do you add files to meson to be included and exported from the library? I added my header/source files to the src directory, added the files to the ‘no-introspection’ library header and sources list, and added the header file to arv.h. Configured meson (meson build) and ran ninja, but when I compile the fake camera (where I want to use my new functions) it tells me that all the references to my functions are undefined. I don’t know enough about meson, but what I have done seems straight forward and I would imagine work.

---

<div class="post-metadata">

**Author:** ![tenspd137](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@tenspd137](https://aravis-project.discourse.group/u/tenspd137)\
**Post date:** [January 6, 2022, 7:08pm UTC](https://aravis-project.discourse.group/t/how-to-add-to-library/354/2 "2022-01-06T19:08:42Z")

</div>

Figured it out - forgot to add ARV\_API to the functions.

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/free1/user_avatar/aravis-project.discourse.group/emmanuel/32/198_2.png) [@Emmanuel](https://aravis-project.discourse.group/u/Emmanuel)\
**Post date:** [January 13, 2022, 4:36pm UTC](https://aravis-project.discourse.group/t/how-to-add-to-library/354/3 "2022-01-13T16:36:48Z")

</div>

Hi,

Yes, ARV\_API must be added to every public API. This is required by the MSVC support.

Would you mind sharing what you are adding to Aravis ?

---

<div class="post-metadata">

**Author:** ![tenspd137](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@tenspd137](https://aravis-project.discourse.group/u/tenspd137)\
**Post date:** [January 19, 2022, 3:41am UTC](https://aravis-project.discourse.group/t/how-to-add-to-library/354/4 "2022-01-19T03:41:36Z")

</div>

I was just trying to add a “flipbook” that would loop through a directory of images that you could use with the fake camera. Basically, you point it at a folder and cycles through the images double buffer style that you can then feed into an arvbuffer.
