Hello,
i want to implement the MUSIC algorithm for frequency estimation in pd.
Therefore i have to calculate eigenvalues and eigenvectors of a certain matrix. The GNU scientific library is a collection of routines for numerical computing and provides functions for calculating eigenvectors and -values.
My problem is that i don't have any idea how to compile my external using the gcc.
Compiling a simple C programm (not as pd-external) requires the command:
> gcc -Wall -c example.c
After that i get a C object file named example.o. Now i have to link this object file with the gsl library like this:
> gcc example.o -lgsl -lgslcblas -lm
Afterwards i get the binary which i can execute with ./example
The question:
Which commands do i have to use to compile a pd-external using the gsl?
Please excuse me for my bad english.
Hope someone could help me.
Best regards,
Joul
P.S.
I already know the usual compiling instructions for pd-externals like:
> gcc -c helloworld.c -o helloworld.o
> ld -export_dynamic -shared -o helloworld.pd_linux helloworld.o -lc -lm