Wrapping a C library.
- Posted by Davy Jan 16, 2012
- 2148 views
This is something I've been thinking about doing for a while, but to be honest I find C a bit intimidating and have never used any of Euphoria's "wrapping" functions. I'd like to use the Gnuplot plotting program directly from Eu (to create graphs on the fly) and there's a simple C library - http://ndevilla.free.fr/gnuplot/ which should do the job.
To be honest, I'm clueless as to where to start. Do I need to know C to do this stuff? I've been looking at the simple example on calling C functions in the demo folder and it seems easy enough, but do I need to compile the C code into a shared library first? Any advice appreciated.