Accessing external functions from module
Posted: 17 Feb 2015 14:24
Hi everybody,
I am developping a new audio filter module and want to use the libsamplerate (the function src_simple()) for resampling. I also want to use the FFT function included in the WMA decoder.
I correctly include the corresponding headers (e.g. #include <samplerate.h>). Creating instances of the structs defined in the headers works fine.
However, if I try to call one of the functions of samplerate.h... Compiling succeeds!
But: At runtime, when my module is loaded, I get an error, my module cannot be loaded and the debug messages say that the function I am calling is an "undefined symbol".
Exactly the same behaviour occurs for both samplerate and FFT functions.
Apart from including the headers, what else do I have to change to be able to access those functions from my module? Some configure settings...or...?
Thanks a lot for your help!
Wolfgang
I am developping a new audio filter module and want to use the libsamplerate (the function src_simple()) for resampling. I also want to use the FFT function included in the WMA decoder.
I correctly include the corresponding headers (e.g. #include <samplerate.h>). Creating instances of the structs defined in the headers works fine.
However, if I try to call one of the functions of samplerate.h... Compiling succeeds!
But: At runtime, when my module is loaded, I get an error, my module cannot be loaded and the debug messages say that the function I am calling is an "undefined symbol".
Exactly the same behaviour occurs for both samplerate and FFT functions.
Apart from including the headers, what else do I have to change to be able to access those functions from my module? Some configure settings...or...?
Thanks a lot for your help!
Wolfgang