Hi Oleg, I wrote a short article a while ago when I wrote an interface to an external C library. Maybe this is of interest for you http://guedemann.org/articles/May-09-2015.html Best, Matthias