Before I investigate how to compile the library with that option (not my area of expertise at all, using the --with-pic in the installation options did not help), I wanted to ask if there is another (potentially easier) way to access a function from the library. I had a look at
Interfacing with External C Code — Cython 3.0a6 documentation : 'When you want to call C code from a Cython module, usually that code will be in some external library that you link your extension against. However, you can also directly compile C (or C++) code as part of your Cython module. ' I was wondering if the latter approach could make sense in my case. Is there an example of how that works in detail?
Thanks a lot for your help (and apologies in case my problem description is not very clear)