I compiled the library to a .lib file. I wrote the bindings for odin for it and it seemed to compile without problems. I translated the example1.c to odin and drawScatterPlot returned success. However, ConvertToPNG didn't succesfully convert to a png, and instead it retured a byteArray with 0 bytes, .bytes pointing to null . What exactly are the possible reasons ConvertToPNG returns 0 bytes?