Hello there,<br>
<br>
I have tried to subscribe to the list by emailing to <a href="mailto:aubio-subscribe@piem.org">aubio-subscribe@piem.org</a> but I got a Failed Mail delivery reply. So I have decided to send an email directly to the list to get some help.
<br>
<br>
I am trying to use the aubio onsetdetection capabilities, but some how
it fails to link to sndfile when compiling. I get undefined references
to the functions which use sndfile such as new_aubio_sndfile_ro,
aubio_sndfile_samplerate, et cetera.<br>
Should I specify any flags when configuring/compiling aubio?<br>
<br>
For instance if I try to compile the following simple example:<br>
<br>
#include <aubio/aubio.h><br>
#include <aubio/sndfileio.h><br>
<br>
int main( int argc, char** argv )<br>
{<br>
        aubio_sndfile_t *foo = new_aubio_sndfile_ro( argv[1] );<br>
        return 1;<br>
}<br>
<br>
with g++ -laubio -lsndfile foo.cxx -o a.out<br>
<br>
I get the following:<br>
<br>
/tmp/cccTPq92.o: In function `main':<br>
foo.cxx:(.text+0x2c): undefined reference to `new_aubio_sndfile_ro'<br>
collect2: ld returned 1 exit status<br>
<br>
<br>
Should I link against other libraries as well? <br>
I am not that experience programmer, so my appologises before hand if I am asking something very obvious.<br>
Any help would be much appreciated.<br>
<br>
<br>
Thanks,<br>
<br>
eduard<br>
<br>
<br>