# Using Geany to link to Arduino Libraries

**URL:** <https://forum.core-electronics.com.au/t/using-geany-to-link-to-arduino-libraries/9088>\
**Category:** Raspberry Pi\
**Created:** [1 January 2021 13:06 UTC](https://forum.core-electronics.com.au/t/using-geany-to-link-to-arduino-libraries/9088 "2021-01-01T13:06:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kirk](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@Kirk](https://forum.core-electronics.com.au/u/Kirk)\
**Post date:** [1 January 2021 13:06 UTC](https://forum.core-electronics.com.au/t/using-geany-to-link-to-arduino-libraries/9088/1 "2021-01-01T13:06:47Z")

</div>

Hi all,

Happy New Year!

Using the [DPS310](https://core-electronics.com.au/adafruit-dps310-precision-barometric-pressure-altitude-sensor-stemma-qt-qwiic.html) sensor, the Adafruit documentation leads me to the following Git repository for the associated library: [GitHub - adafruit/Adafruit\_DPS310: Adafruit DPS310 sensor driver library for Arduino](https://github.com/adafruit/Adafruit_DPS310). The instructions in GitHub are:

> To install, use the Arduino Library Manager and search for “Adafruit DPS310” and install the library.

I have installed the Arduino Library Manager and subsequently installed that DPS310 library. Using the Geany IDE, however, I keep running into compile issues for every ‘.h’ file included. Each time I get a compiler error of “No such file or directory”, I search for the relevant ‘.h’ file causing the error, and then add the library path to my compile library path. So far I’ve added about 6 different directories and I’m still not able to compile.

This therefore prompts the question: how should I actually best go about this ‘properly’? I guess I would have expected that I could somehow easily call a single Arduino library repository in order to compile my code?

Thanks in advance,  
Kirk.

---

<div class="post-metadata">

**Author:** ![Michael](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/michael/32/3545_2.png) [@Michael](https://forum.core-electronics.com.au/u/Michael)\
**Post date:** [3 January 2021 22:00 UTC](https://forum.core-electronics.com.au/t/using-geany-to-link-to-arduino-libraries/9088/2 "2021-01-03T22:00:45Z")

</div>

Hey @Kirk, have you been able to compile a basic _Hello World_ script in Geany - without any 3rd party libraries?

I came across this [guide](https://wiki.geany.org/config/arduino) for setting up Geany for Arduino - but it’s a bit light on the details for library management.

* * *

Alternatively, if you’re just trying to break away from using the Arduino IDE (it is quite basic and restrictive) perhaps consider using Geany as an external text editor only, and compiling using Arduino. See [this guide](https://www.youtube.com/watch?v=YgogzPyEqfE&ab_channel=MichaelRuppe) which sets Arduino up for using an external text editor.  
In this way you can use the text-editing and workflow benefits of your preferred editor, but avoid the hassle of toolchain setup.

---

<div class="post-metadata">

**Author:** ![Kirk](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@Kirk](https://forum.core-electronics.com.au/u/Kirk)\
**Post date:** [3 January 2021 23:08 UTC](https://forum.core-electronics.com.au/t/using-geany-to-link-to-arduino-libraries/9088/3 "2021-01-03T23:08:12Z")

</div>

Really appreciate your feedback and research @Michael. I have already completed some _Hello World_ type scripts in Geany, so the intent with this one was to really begin to automate the sensor measurements.

In fact, I did have my first script totally automated and running using CircuitPython, but that’s when I realised that Arduino had not supported the Altitude sensor function in Python (it was only recently updated in the C libraries). Secondly, from what I can see, the second sensor that I now want to connect seems to only have C libraries, thus the thought to move from Python to C++ for all my programming.

Thanks again Michael.
