# Using SonicPi API

**URL:** <https://in-thread.sonic-pi.net/t/using-sonicpi-api/7219>\
**Category:** Development \[obsolete\]\
**Created:** [November 4, 2022, 10:19pm UTC](https://in-thread.sonic-pi.net/t/using-sonicpi-api/7219 "2022-11-04T22:19:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jude](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@Jude](https://in-thread.sonic-pi.net/u/Jude)\
**Post date:** [November 4, 2022, 10:19pm UTC](https://in-thread.sonic-pi.net/t/using-sonicpi-api/7219/1 "2022-11-04T22:19:12Z")

</div>

I am attempting to use the Sonic Pi API for a project of my own, but including it in my own C++ project has proven challenging.

When attempting to include the sonicpi\_api.h, I get quite a few compilation errors from the osc\_pkt.hh file and kissnet.hpp. I don’t know why this is not a problem in building actual Sonic Pi, but it causes me to not be able to compile my own code as it includes sonicpi\_api.h, which includes these files. In osc\_pkt.hh, I get warnings that “strcpy” is deprecated, and not to use it. I could ignore this warning but feel like it is unwise. More troubling is the external library file kissnet.hpp has similar deprecation warnings. If I do set the compiler to ignore these warnings, I get a linking error instead, which I suspect is related.
